On Saturday 30 March 2002 10:42, Saulo Silva wrote:
> Hi everybody
> I can't get PHP to work with mySQL. I'm using PHP as an Apache module
> (RedHat) and the error message I get is the following message:

Are both apache & php installed from RedHat rpms?

> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/html/other/test.php on line 10

It's telling you that you don't have mysql support compiled into php (which 
you know).

> I've tried to recompile PHP with mySQL support and restart httpd but
> nothing changed. The problem is not with the mySQL database because I also
> use Perl in our website and it works fine.

If you're mixing RPMs installs with source tarball installs you have to make 
sure that the paths they use are the same.

Check where your recompiled PHP installs its files (libphp4.so etc)
Check in your httpd.conf that apache is loading those same files.

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

The only difference in the game of love over the last few thousand years
is that they've changed trumps from clubs to diamonds.
                -- The Indianapolis Star

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to