[RESOLVED] Php Run from Command line shows mysql loaded, phpinfo doesn't
Hi-
I recently tried to upgrade my PHP version on a Windows machine - which didn't work well, so I am trying to revert to my old setup which worked fine until I messed with it. I'm running PHP 5.2.6, MySQL 5 on Windows IIS6.0
Status:
PHP is installed and works
MySQL is installed and works
mysql.dlls' are uncommented in php.ini
My path to php and extension directory is correct in the web version
My PHPRC is set up, as well as, my path to PHP in environment variables
My problem is that if I run PHP from from the command line: php -m it shows both mysql dlls loaded as well as mbstring - which is what I want. However, if I run PhpInfo() from inside a webpage it doesn't show mysql or mbstring loaded - any when I tried to use WordPress which used to work, it says mySQL is not loaded in my PHP installation.
I've searched and searched for an answer to this and can not find anything that works, so now, any thoughts of what else to check would be most welcome.
Thanks in Advance
I do have the server set up with .php loading php5isapi.dll
Did you restart the web server software after the installation of PHP?
/!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade!/!!!\ ereg() is deprecated --- don't use it!
dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket
Thanks everyone for your help. It is finally resolved. Here was the solution:
Apparently, I had the wrong mysql.dll's in the extension directory. I was running mysql 5.0.51b and has those dlls in my extension directory. When I replaced them with mysql 5.0.51a dll's, it worked.
Thanks everyone for your help. It is finally resolved. Here was the solution:
Apparently, I had the wrong mysql.dll's in the extension directory. I was running mysql 5.0.51b and has those dlls in my extension directory. When I replaced them with mysql 5.0.51a dll's, it worked.
Glad to hear it. Please consider using the "Thread Tools" dropdown near the top right of the thread to mark this thread as having been "RESOLVED".
And welcome to PHPBuilder.
/!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade!/!!!\ ereg() is deprecated --- don't use it!
dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket
Mind you, PHP 5.2.6 and MySQL 5.0.5 doesn't make for a very ambitious "upgrade".... And I'm guessing you're using an old version of Windows, or you wouldn't be using IIS6.
Mind you, PHP 5.2.6 and MySQL 5.0.5 doesn't make for a very ambitious "upgrade".... And I'm guessing you're using an old version of Windows, or you wouldn't be using IIS6.
Lol, darn tootin' ... what I wish I could get one of ours to at least MySQL 5.5 ... the improvement in some of the query handling is fairly impressive (if, indeed, somewhat past due).
/!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade!/!!!\ ereg() is deprecated --- don't use it!
dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket
Bookmarks