[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PHP3+MySQL problems



Chris wrote:
> Hi.  Well, I seem to be having problems getting PHP to recognize that I
> have mysql support in place.  When I try to view a document with a
> mysql_connect() function in it, I get:
> 
> Fatal error: Call to unsupported or undefined function mysql_connect() 
> in /home/cmayes/public_html/apples.php3 on line 12

Which means that the mysql.so module doesn't get loaded.

> cmayes:/usr/lib/php3/apache# ls
> calendar.so  crypt.so  mysql.so
> 
> In my /etc/php3/apache/php3.ini:
> 
> extension_dir   =       /usr/lib/php3/apache 

But just its presence does not mean that it also gets loaded! You need to
add "extension=mysql.so" to your php3.ini file.


HTH
 -Remco


Reply to: