PDA

View Full Version : PHP Error after install


ccollingsworth
10-26-2005, 09:17 PM
I installed PHP 4.4.0 and MySQL 5.0.15 on a Windows 2000 Server running IIS.

I get the following error after transferring a site from Linux server to this server:

Fatal error: Call to undefined function mysql_connect() in d:\Inetpub\wwwroot\uc_votech_shared\student_organizations\FBLA Site Folder\FBLA Site\functions.php on line 13


The script works fine on the Linux server and there is no coding/syntax errors in the script.

What went wrong?

Thanks for your help in advance. I really appreciate it.

Attached is the php.ini file in a txt format.

ElectricSheep
11-02-2005, 02:49 PM
It sounds like your Windows installation of PHP has not been compiled with MySQL support. Running phpinfo() will confirm this.
Are you sure it is version 4x and not PHP version 5x?

Horus_Kol
11-02-2005, 03:46 PM
hmm... mysql support was built-in for that version... hmm...

Viath
11-08-2005, 11:46 PM
Two things, first, uncomment this line in php.ini:
;extension=php_msql.dll

Second, libmysql.dll must be available to the Windows PATH. You could copy libmysql.dll to the Windows system directory, but a better mothod is to add your PHP directory to the PATH. Since your running Windows 2000, here is how:

Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003)

Go to the Advanced tab

Click on the 'Environment Variables' button

Look into the 'System Variables' pane

Find the Path entry (you may need to scroll to find it)

Double click on the Path entry

Enter your PHP directory ant the end, including ';' before (e.g. ;C:\php)

Press OK and restart your computer