Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Gilles Ganault
March 1, 2009, 6:04 pm
rate this thread
Even though Apache has been compiled on a FreeBSD host for support
for MySQL5 and PHP5, I get this error when calling this line from a
# cat index.php
$db=mysql_connect("localhost", "root", "test") or die
("Couldn't connect: " . mysql_error());
PHP Fatal error: Call to undefined function mysql_connect() in
/usr/local/www/apache22/data/index.php on line 2
Fact is, calling phpinfo() doesn't return anything about MySQL, but
/usr/local/etc/php/extensions.ini does contain a line that says:
Here's what phpinfo() says:
Loaded Configuration File /usr/local/etc/php.ini
Scan this dir for additional .ini files /usr/local/etc/php
additional .ini files parsed /usr/loc
I don't know where to look for an explanation. Any idea?
Re: Possible cause for "Call to undefined function mysql_connect()"?
Gilles Ganault wrote:
Either you have not installed the MySQL client library on your system,
or your libary is installed by not accesible to PHP.
Remove the "x" from my email address
JDS Computer Training Corp.
- C. (http://symcbean.blogspot.c
March 2, 2009, 9:41 am