Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 18, 2006, 12:48 pm
rate this thread
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.
Re: Connection to mysql working in eclipse but not on apache?
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