Page 1 of 1

PHP5 Upgrade problem on XP doesn't recognise mysql functions

Posted: Tue Aug 16, 2005 7:04 am
by icarpenter
Hi

I am having problems upgrading php...I have removed PHP4 and installed PHP5 using the installer...copied the binary files into C:\PHP...

PHP does run OK when I use the echo command...however it doesn't recognise the mysql_connect(); function and reports that PHP does not recognise mysql functions. the page I am loading runs fine on PHP4.

I have tried enabling the php_mysql.dll in php.ini and copied the dll to c:\windows\system32.

But still I get the error PHP not recognise mysql functions.

Does anyone have any ideas how I can overcome this problem?

Thanks Ian.

Posted: Tue Aug 16, 2005 7:13 am
by feyd
did you restart your server?


this isn't a Code Theory or Design question.. it's more of a Web Server one....


Moved.

Posted: Tue Aug 16, 2005 7:42 am
by icarpenter
Yeah many times and rebooted!

Posted: Tue Aug 16, 2005 7:43 am
by icarpenter
phpinfo(); runs fine!

Posted: Tue Aug 16, 2005 8:01 am
by feyd
where did your php_mysql.dll file come from?

Posted: Tue Aug 16, 2005 9:02 am
by icarpenter
I got this from the php binary download (PHP 5.0.4 zip package)

Posted: Tue Aug 16, 2005 9:27 am
by icarpenter
I think I have got it working...using IIS at leats with the following php.ini entries...

doc_root = "C:\inetpub\wwwroot"
extension_dir = "C:\PHP\ext"

Just need to get working on Apache...


Thanks for your help!!!

Ian.