471,337 Members | 1,179 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

PHP and MySQL problem

Hi,
I am running Debian 3.0r1 with Apache 1.3.27, MySQL 3.23.49 and PHP
4.3.3RC3.
I installed Apache and MySQL when I originally installed Debian and these
work fine. I recently wanted to run some PHP scripts on my web server that
talked to a MySQL database. I installed php4 and php4-mysql using apt-get.
Unfortunatly I can't get the scripts to work. I keep getting the following
error:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/ganymede/dbtest.php on line 4

mysql.so is located in /usr/lib/php4/20010901 and so I have the following
entries at the bottom of my php.ini file:

extension_dir=/usr/lib/php4/20010901/
extension=mysql.so
I haven't been able to find any useful information on how to fix this
problem. Everything I've found so far says make sure I've installed
php4-mysql and that I have extension=mysql.so in my php.ini file, but I've
done all that. What am I missing? This is driving me nuts!

- David
Jul 16 '05 #1
1 2642
In article <bk**********@titan.btinternet.com>, David wrote:

Fatal error: Call to undefined function: mysql_connect() in
/var/www/ganymede/dbtest.php on line 4

mysql.so is located in /usr/lib/php4/20010901 and so I have the following
entries at the bottom of my php.ini file:

extension_dir=/usr/lib/php4/20010901/
extension=mysql.so


What does phpinfo() say?
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lenz Grimmer | last post: by
3 posts views Thread by Kirk Soodhalter | last post: by
10 posts views Thread by Caffeneide | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.