PHP 5 + MySQL Problem

Associate
Joined
27 Apr 2004
Posts
2,377
Not sure this is the right forum but it was my best gues...

I upgraded my server (Windows XP :o ) to the latest version of PHP 5 from PHP 4 today. Reason for doing so is I need some of the functionality for a script I'm making. However I now face the problem that no MySQL based stuff works; so that's two forums and a gallery down. Now of course I've enabled the MySQL extension and set the path right, and I know extensions are working because I've also enabled GD2 and it works perfectly.

The errors I get when trying to use any MySQL functionality basically say function not defined eg.
Code:
Fatal error: Call to undefined function mysql_connect()

What am I doing wrong? MySQL version is 4.1 if that's of any relevence. It always used to work fine with PHP4.

Thanks, null :)
 
Thanks I've copied libmysql.dll to system32 now. Unfortunately I'm at school and so can't restart Apache 'till I'm home though. Also I did already have extension=php_mysql.dll uncommented.

Thanks, null :)
 
It is on the same PC but I thought it shouldn't matter anyway :p

Reason I can move files around is I have a web based file manager running on it, so I used that to do what I could earlier ;) Problem is the school proxy server is fine with that but of course kills things like remote desktop. Which I would need to restart Apache.

edit - PHP install does need to be on same PC I know, and it is, misread your post and thought you said MySQL. Both PHP and MySQL are on same server.
 
Last edited:
And now I've got the script that needed it working; my signature. Reason that PHP4 couldn't cut it is that no matter what I did, I could not access files with a URL; only from disk.

This was a problem because I have to use a URL to get the OcUK FAH stats file from the Stanford server for updates.

/ Randomness :o
 
Back
Top Bottom