@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28



Comments:

<0> ok
<1> Now run php -m
<1> See if mysql is listed
<2> what tokenize means?
<0> i get an error at the beginning
<0> unable to load php_mysql.dll
<1> Sysop_Kn1F3: Good about tokenizing
<1> dg_bluesky: Um, set extension_dir in your php.ini to c:/php/ext
<3> Hey all
<3> I'm a PHP Newbie, and I was wondering how you make the PHP code post the person's IP address
<3> is it an Array? Or what
<1> $_SERVER['REMOTE_ADDR'] contains the IP address
<3> what do you call that?
<3> an array?
<4> RZA-Razor: yes it is an array
<1> $_SERVER is an array. $_SERVER['REMOTE_ADDR'] is a string.



<0> ; Directory in which the loadable extensions (modules) reside.
<0> extension_dir = "./"
<3> I see
<0> current set to this
<3> So that string is pre-defined?
<1> dg_bluesky: Set it to c:/php/ext
<1> RZA-Razor: Yes
<3> Alright. so I know the string. But how can I make it "get" and "post" the string (in this case, ip address)
<1> What do you mean "get" and "post"... get from where, post to where?
<3> How do I make it display
<3> echo $_SERVER['REMOTE_ADDR'] ?
<4> RZA-Razor: <?php echo $_SERVER['REMOTE_ADDR']; ?>
<3> I see.
<1> Just like you did, RZA-Razor.
<1> Um, RZA-Razor, RTFM.
<3> Is there a list of predefined strings like that?
<1> This is *NOT* the place for you right now.
<0> ok kuja did that what next
<1> You belong on php.net/manual
<1> dg_bluesky: Do: php -m
<4> http://au3.php.net/manual/en/language.variables.predefined.php
<0> mysql is listed no errors
<1> dg_bluesky: Restart Apache as well.
<1> But of course, I told you to set extension_dir LONG ago.
<3> Ok kuja, I will go to php.net if you can help me find where there's a list of predefined values such as $_SERVER['REMOTE_ADDR']
<0> ok i restarted apache
<0> how can I test
<5> hey, what could be wrong with this?
<4> RZA-Razor: look at the link i posted
<3> ok, thanks
<5> <? php if ($result != "ANY") { echo $result; } ?>
<1> dg_bluesky: phpinfo()
<5> the output is ANY onto the page...
<5> datatype wrong or something..
<0> ok im there
<0> what am i looking for
<1> dg_bluesky: You're looking for mysql support
<0> not there
<1> And phpinfo() is still pointing to C:\WINDOWS right?
<5> am I in trouble for pasting code? :S
<0> yes that is correct
<1> kuja@shugotenshi:~/learning_c$ php -r '$result = "GAY"; var_dump( $result == "ANY" );'
<1> bool(false)
<1> callipygous: It's that simple.
<1> There's no real argument.
<5> what do you mean?
<1> You're saying ANY is getting output right?
<0> kuja what do I have to do to get php.ini to point to the right place
<5> no...
<1> callipygous: I misunderstood then? What's the problem.
<5> there is a value stored in $result
<5> it is in a for loop
<1> dg_bluesky: If you're on Apache2 you can do PHPIniDir "C:/php" from httpd.conf
<5> if the value stored in $result is "ANY" (or "ANY" for that matter could be "poobar"
<5> or any other string
<5> anyway, if the value in $result is "whatever I put in here", I don't want it to echo it
<1> Then the above is correct.
<5> cool, i think something else was wrong ;)
<0> kuja can't find that in that file
<6> http://www.met-art.com/new.html



<1> dg_bluesky: Can't find what... it's something you add.
<0> can i add it at the end of the file?
<1> Yes
<0> after adding that now its coming up blank for phpinfo
<3> Ok. I have the predefined variable $HTTP_USER_AGENT, and it displays my browser
<0> what do I do now
<1> dg_bluesky: You have pointed it to C:/php ?
<3> But after my browser, it displays even more information. Is there anyway for it to just display browser?
<0> yes that is correct
<3> for example: http://itmpls.com/php/testing.php
<1> dg_bluesky: Then I have no idea what's wrong. Apparently it works with your CLI version, but not your Apache module.
<0> what really
<7> fdisk
<7> really
<1> Getting Apache, PHP, and MySQL all setup only takes me 5 minutes.
<1> That includes getting the extensions working.
<0> what else do i need to set
<8> It takes less than a minute with a decent AMP package
<1> That's about all I can help you with. I'm not familiar with any of your problems, as I've never came across them on Windows.
<1> FlamingCows: Manual installation is easier to maintain though :)
<0> what is phpinfo still pointing to windows
<8> Meh, not always.
<1> Though in dg_bluesky's case, he might want one of the bundles.
<1> FlamingCows: Was for me.
<8> Not if the AMP package is transparent enough.
<1> I always kept everything neat and organized.
<0> what did i do wrong
<3> is include used alot in php sites? like for navigation?
<9> you can always get the xampp package install it
<9> FlamingCows:you can always get the xampp package install it
<8> Heh, I use Uniserver when forced into a win32 environment, and it just emulates the standard *nix directory structure on a virtual drive within Windows.
<0> kuja why would php.ini path be pointing to windows
<8> XAMPP is pretty bad.
<1> dg_bluesky: That's the default.
<0> and to change it?
<1> Like I said, PHPIniDir for Apache2, and SetEnv PHPRC for prior, I believe.
<9> FlamingCows : you faced any difficulties in it?
<0> how do i know if I have apache2
<8> guru__: I don't go for the whole 'installer' thing, and it's huge at 33MB.
<1> ...
<0> but the command line is picking up mysql
<9> yeah
<0> in the modules
<9> thats true
<8> guru__: Whereas Uniserver just extracts from an archive and is 6MB.
<8> With all the same features.
<8> If not more.
<9> ok
<8> Not to mention it creates a virtual drive for itself, which makes it very easy to manage.
<9> oh ok
<8> Navigating to 'Program Files' every time I need to do something is a real pain. :)
<0> kuja is there anything else I can check
<9> flamingcows: what is that available in that uniserver package?
<9> is that a wrapper kinda thing?
<1> dg_bluesky: I'm out of ideas.
<0> if we were to double check what can we check'
<8> guru__: It just runs a 'subst' command on its current location to W:, but it's pretty spiffy to work with.
<9> ok
<0> can i check something in the php.ini file
<0> or httpd file
<0> i see the modules and mysql is listed there
<10> I am creating a page that accepts file uploads (images) and creates a gallery - what I need advice on is how to name my files? I don't want any details to be within the files (ie date, time, user) and I would prefer a name that is english not random. should I just accept the source filename?
<0> should i have something for doc_root =
<10> does anyone know of a code editor that runs on freebsd/linux that can collapse/expand functions. (I have some really long parts that make it hard to read the code)
<11> if im using PDO. and have a Product cl*** that has a method listProducts. wouldnt it be wiser for me to access PDO directly from the Product cl***? so basically the cl***es would look like: Product <--> PDO, instead of Product <--> DBManager <--> PDO
<12> krz: depends, what does DBManager give you?
<12> if it has SQL abstraction, then yes, use that, if you're only using one DB or are writing simple SQL so that it runs on a couple of known RDBMs, then don't.
<11> sql abstraction, like what? how do you mean?
<12> i.e. if you want to support MySQL and PgSQL, its fairly easy to write SQL that will run on both
<11> yea true, but you can just use PDO, cnat you?
<12> krz: i.e. will take you SQL, parse it, and run it on any RDBMs, anything you use that's unsupported will be done in PHP instead
<11> Davey are you using a seperate cl*** to access PDO?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#fedora
openzaurus wlanng config
PMA400 WPA
cuban cigar box code rms
suse 10 sii3114
+torrent +openwall +dictionary
#suse
#kde
isolinux disk error drive FF
gcc 4.1.1 kernel cflags



Home  |  disclaimer  |  contact  |  submit quotes