Page 1 of 1

advise me about ZEND studio

Posted: Thu Dec 01, 2005 12:26 am
by pleigh
i'm using ZEND studio for my php pages...i just figure out how to configure php5+mysql+apache2...the problem is that, when i am using zend to edit some file, like connecting to mysql database, then preview it to the zend's internal browser, there was a fatal error like: undefined function mysql_connect()...but when i save the file, open it in firefox, i have a successful connection to mysql....can you advise me, or point me where could be the cause of the problem??

many thanks. :)

Re: advise me about ZEND studio

Posted: Thu Dec 01, 2005 1:45 am
by jmut
pleigh wrote:i'm using ZEND studio for my php pages...i just figure out how to configure php5+mysql+apache2...the problem is that, when i am using zend to edit some file, like connecting to mysql database, then preview it to the zend's internal browser, there was a fatal error like: undefined function mysql_connect()...but when i save the file, open it in firefox, i have a successful connection to mysql....can you advise me, or point me where could be the cause of the problem??

many thanks. :)
not quite sure if this actually will help.
But Zend uses its own php.ini. Try making it the same as the one the apache uses and see if it works.

Posted: Thu Dec 01, 2005 1:58 am
by pleigh
yup...thanks...itried to look for the php.ini file of zend but there's only i think 3-4 lines...and is pointing to some directory....can't really understand...anymore hint? :?:

Posted: Thu Dec 01, 2005 9:21 am
by jmut
pleigh wrote:yup...thanks...itried to look for the php.ini file of zend but there's only i think 3-4 lines...and is pointing to some directory....can't really understand...anymore hint? :?:
use you original php.ini instead of this of zend.


backup the zend one.

then overwrite the zend ini with the one that apache uses.
Is it working that way?

Posted: Fri Dec 02, 2005 1:45 am
by pleigh
jmut wrote: then overwrite the zend ini with the one that apache uses.
Is it working that way?
thanks...where could that be located??the zend ini that apache uses..

Posted: Fri Dec 02, 2005 1:55 am
by pleigh
nope...it doesn't work...