Posted by Grant Nosbush on 07/23/05 04:33
I have searched the newsgroups and the web trying to solve this problem
and just can't get it. Maybe someone will be able to help. I am
getting the following error when I try to view a test page in my
browser. This test page just reads a table in mysql and outputs the
results.
Fatal error: Call to undefined function: mysql_connect() in
/var/web/public/test.php on line 2
I'm using:
Apache 2
MySQL 4.1.12
PHP 4.4.0
I have tried upgrading PHP to PHP5. I went back down to PHP4. I
verified that mysql.so was being loaded. I tried using the OLD_PASSWORD
feature in mysql. Verified that the PHP module is loaded in apache.
What is weird however (at least I think) is when I run the following via
telnet:
php ./test.php
It pulls up the page, connects successfully to the database and displays
the records. No error message.
Does anyone have any suggestions for other things for me to try. Thanks
in advance for your help.
Grant
[Back to original message]
|