advise me about ZEND studio

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

advise me about ZEND studio

Post 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. :)
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Re: advise me about ZEND studio

Post 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.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post 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? :?:
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Post 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?
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post 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..
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

nope...it doesn't work...
Post Reply