|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
php 5 installing mysql
After receiving a fatal error: "Fatal error: Call to undefined function mysql_pconnect() in x on line 11", I realized that I needed to install mysql for php 5. So, following the php website, I uncommented "extension=php_mysql.dll" in the php.ini file, and also wrote "extension_dir = "C:phpext"". My PATH variable already has "C:php" in it, where libmysql.dll is located. I then tried the php script again, but the same error showed. So I restarted my web server and mysql, but the same error was still there.
What did I do wrong when I installed mysql with php 5? I also tried looking at phpinfo(). I searched the page, but "mysql" did not show up. |
|
#2
|
|||
|
|||
|
RE: php 5 installing mysql
I had a similar problem installing PHP5 & MySQL5 on my laptop, using Apache 2 web server, when I needed to move from PHP4 and MySQL4, etc..
It seems that PHP was not picking up the php.ini file even though it was there and had the correct entries. phpinfo() was not reporting the location of the php.ini file correctly, showing something like c:windows. Stopping and re-strating the services, re-booting the laptop, etc.. did not correct the problem. I eventually got it to work, after one week, by un-installing PHP and starting again from scratch, now works OK! ????? Hope this helps, good luck. Jon |
|
#3
|
|||
|
|||
|
RE: RE: php 5 installing mysql
Quote:
I checked my phpinfo(), and like you said, it showed "Configuration File (php.ini) Path C:WINDOWSphp.ini". I copied my php.ini file in c:php, and put it in c:windows. Now it works! Thanks! |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > php 5 installing mysql |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|