PHP5 Upgrade problem on XP doesn't recognise mysql functions

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

PHP5 Upgrade problem on XP doesn't recognise mysql functions

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Post by icarpenter »

Yeah many times and rebooted!
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Post by icarpenter »

phpinfo(); runs fine!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

where did your php_mysql.dll file come from?
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Post by icarpenter »

I got this from the php binary download (PHP 5.0.4 zip package)
User avatar
icarpenter
Forum Commoner
Posts: 84
Joined: Mon Mar 07, 2005 8:12 am
Location: Kent, England

Post 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.
Post Reply