Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] MySQL not compiled into the binary From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <LPBBKOACBNLNFJPCNPCHGEHGCAAA.j.r.mohler <email protected>>,
j.r.mohler <email protected> ("James Mohler") wrote:

> I downloaded 3.0.16 Win32 binary to run with Apache 1.3.12 and MySQL
> 3.22.24. The Apache and PHP work fine, and MySQL works fine from the
> console and recognizes the localhost, but when I try to connect though PHP
> scripts I get the following message: "Fatal error: Call to unsupported or
> undefined function mysql_connect() in ..." - after several attempts to
> debug this problem I finally found a reference to the exact error message in
> the MySQL site. Their evaluation is that support for MySQL is not compiled
> into PHP. I don't know where to go. I don't know what compiler is
> necessary to compile MySql support into PHP and I'm not sure the evaluation
> is correct. Can you point me somewhere for help?

On Windows, the support for MySQL is compiled into a DLL (and php.exe
itself) which is referenced in your php3.ini file.

You will need to uncomment the line mentioning MySQl in your php3.ini
file, and then try again.

If it still doesn't work, move the php3mysql.dll file around until it
does. Right next to php.exe is usually the place that works easiest.

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>