|
Posted by Colin McKinnon on 02/18/06 15:40
frustratedcoder wrote:
> I have installed apache, php5 and mysql on my laptop.
>
> I write my code in eclipse and when I test it inside eclipse, the mysql
> database connection is working, I can execute the script inside
> eclipse. But when I put that same script into my htdocs on the apache
> server running on the same laptop and access it using my browser, I get
> a "Call to undefined function mysql_connect()" error message.
Not familiar with using PHP in Eclipse, but it sounds as if your module is
not loading the MySQL extension. Try phpinfo() on both systems to see where
it's reading the ini from, and how the paths are setup. Make sure the
webserver isn't running chroot (or that the chroot environment is correctly
configured).
C.
[Back to original message]
|