View Full Version : PHP 5.2.5 - Call to undefined function mysql_connect()
fnixws
November 30th, 2007, 06:04
I Upgraded to PHP 5.2.5 when moving to another server, now any script that has to do with MySQL returns thsi message.
Call to undefined function mysql_connect()
Seems to be a common problem, and i googled the hell out of it, folowed several sets of instructions to fix it, but no luck.
Anyone else get this problem?
Windows Server 2003
IIS, MySQL 5.0.45, PHP 5.2.5
I can just go back to my old system i guess, but i wanted PHP 5 and to use IIS for once insted of Apache.
themoose
November 30th, 2007, 06:06
You haven't compile PHP with mysql. Google the hell out of that, cause I'm not entirely sure how to.
fnixws
November 30th, 2007, 06:14
Its windows, I dont have to compile anything. :P
As i said, i followed all instructions reguardung the editing of php.ini, the placing of the dlls and the switching on of PHP in IIS.
Unfortunatly i still get the same errors :(
krakjoe
November 30th, 2007, 08:20
post php.ini here ...
fnixws
November 30th, 2007, 09:05
This is the current config. Ive reinstalled and edited it over and over.
Config:
http://72.232.12.186/serenity/php.ini
php info:
http://69.94.121.238/stats.php
Never used IIS before, and im not liking it at all :S
Unfortunatly i canf find a good WAMP package that runs php5 and and mysql5.
krakjoe
November 30th, 2007, 10:42
[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll
[PHP_DBA]
extension=php_dba.dll
[PHP_DBASE]
extension=php_dbase.dll
I'm pretty sure that's wrong, by doing [THIS] you're creating a new section in the ini file, and php will look in the main [PHP] section for extension directives. That's probably why mysql isnt loading ... I get a 404 on info ...
fnixws
November 30th, 2007, 17:51
So your saying i should try move the extention definitions to the main [PHP] section i think. Ill try move it.
EDIT: Nope, doesnt work, now all PHP just tells me that the service is unavalible.
Windows IIS doesnt seem to be worth the effort to set it up :S
Anyone know any good WAMP packages that use SQL and PHP 5+?
themoose
November 30th, 2007, 18:10
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
under there put
extension=msql.dll
restart apache, should be good...
fnixws
November 30th, 2007, 18:41
The whole point is im trying not to use Apache, so i assume you mean restart IIS.
Unfortuntaly it doesnt work either, infact now PHP wont even load at all and returns a 404.
Anyone know any good WAMP packages that use SQL and PHP 5+?
krakjoe
December 1st, 2007, 07:40
apache2triad & xampp
Starcraftmazter
December 1st, 2007, 08:45
Windows IIS doesnt seem to be worth the effort to set it up :S
I'm pretty happy you've reached the correct conclusion here.
And another vote on xampp. I have xampplite (smaller & portable version of xampp) on my flash drive for windows machines, it's quite an incredible peace of software.
fnixws
December 1st, 2007, 22:23
How do i use the windows domain controller with xampp? or does it have its own? What about email?
the problem im finding is most WAMPs only do 1/2 of what you need.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.