You are here: Re: Error using mysql with php4 « PHP Programming Language « IT news, forums, messages
Re: Error using mysql with php4

Posted by Jim Ottaway on 10/14/95 11:34

>>>>> Jim Ottaway <j.ottaway@lse.ac.uk> writes:
>>>>> Andy Baxter <news4@earthsong.null.free-online.co.uk> writes:
>> hello,
>> I'm using the php4-mysql module with php4 under debian linux (sarge). I
>> have a script, schedule.php, which runs fine when I invoke it from the
>> command line, but fails with the error:

>> Fatal error: Call to undefined function: mysql_connect() in
>> /local/rivulet/interface/db.php on line 4

>> when I try to invoke it as a web page (using apache2). As far as I know,
>> php itself is set up correctly.

> I had this problem using sarge too. I got it working by adding
> extension=mysql.so to the php.ini in /etc/php4/apache.

Sorry, ignore that: I thought that's what I did, but I subsequently
stopped using apache in favour of lighttpd.

The extension=mysql.so gets added right at the very end of the
configuration by the mysql installation, so I didn't spot it;
following my advice actually leads to a duplicate extension error.

Has apache been reloaded/restarted since you installed mysql? That
would pick up the configuration change.

Regards,

--
Jim Ottaway

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация