You are here: Re: Connection to mysql working in eclipse but not on apache? « PHP Programming Language « IT news, forums, messages
Re: Connection to mysql working in eclipse but not on apache?

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.

 

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

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