Page 1 of 1

ZEND STUDIO

Posted: Mon Dec 04, 2006 11:50 am
by hrubos
I have installed ZEND STUDIO, but I have received error that can't connect to MySql.How to do to connect to mysql.I used PSPad, then I tried running on browser, I can connect to mysql.

Posted: Mon Dec 04, 2006 12:08 pm
by Corvin
Zend Studio is using mysql .. ? :?
What exactly is the problem ? Which error message do you get ?

Posted: Mon Dec 04, 2006 12:24 pm
by RobertGonzalez
Are you using the database connection settings in Studio? They are pretty straight forward, if you go to the databases tab.

Posted: Mon Dec 04, 2006 12:48 pm
by hrubos
I have received this error from ZEND editor :
Debug Error: D:\htdocs\BP\db_connectFun.php line 8 - Call to undefined function mysql_connect()

Posted: Mon Dec 04, 2006 12:57 pm
by RobertGonzalez
Then you don't have the mysql extension enabled. Enable the extension, restart your server and try again.

Posted: Mon Dec 04, 2006 1:12 pm
by hrubos
Everah wrote:Then you don't have the mysql extension enabled. Enable the extension, restart your server and try again.
I have had the mysql extension enabled in php.ini. And I have run in browser when I code by PSPad. But in ZEND editor, I have had that error. So how should I do???

Posted: Mon Dec 04, 2006 1:18 pm
by feyd
Doesn't Zend run its own server instance with its own php.ini?

Posted: Mon Dec 04, 2006 1:27 pm
by hrubos
feyd wrote:Doesn't Zend run its own server instance with its own php.ini?
Yeah.

Posted: Mon Dec 04, 2006 1:46 pm
by m3mn0n
Then you sure it's enabled there, too?

Posted: Mon Dec 04, 2006 1:48 pm
by hrubos
m3mn0n wrote:Then you sure it's enabled there, too?
it was enabled in ZEND??? I haven't changed anything in ZEND and I"m not sure that the mysql extension enabled in ZEND. but in Php.ini it was

Posted: Mon Dec 04, 2006 1:49 pm
by RobertGonzalez
What I do is run my apps from my local server instead of the Zend server. Or push them the PHP executable on my system. I have never had this problem before, when doing it the way I described here.

Posted: Mon Dec 04, 2006 1:58 pm
by hrubos
Everah wrote:What I do is run my apps from my local server instead of the Zend server. Or push them the PHP executable on my system. I have never had this problem before, when doing it the way I described here.
I run in localhost and so I have done Zend connect to sql then I restart server . I think I have done follow ur way, but still that error

Posted: Mon Dec 04, 2006 2:16 pm
by RobertGonzalez
What I am saying is that all of my projects are located in my localhost server root. When I test my apps, I call them from my browser at http://localhost/application_name. I infrequently use the Zend Studio debugger as it is lacking in my opinion. So I test locally through my local server.

Posted: Mon Dec 04, 2006 2:53 pm
by hrubos
Everah wrote:What I am saying is that all of my projects are located in my localhost server root. When I test my apps, I call them from my browser at http://localhost/application_name. I infrequently use the Zend Studio debugger as it is lacking in my opinion. So I test locally through my local server.
thank ur help and I think I will do follow you

For the non-aolspeaking viewers...

Posted: Mon Dec 04, 2006 4:31 pm
by feyd
hrubos wrote:
Everah wrote:What I do is run my apps from my local server instead of the Zend server. Or push them the PHP executable on my system. I have never had this problem before, when doing it the way I described here.
I run in localhost and so I have done Zend connect to sql then I restart server . I think I have done follow your way, but still that error
hrubos wrote:
Everah wrote:What I am saying is that all of my projects are located in my localhost server root. When I test my apps, I call them from my browser at http://localhost/application_name. I infrequently use the Zend Studio debugger as it is lacking in my opinion. So I test locally through my local server.
thank you [for] your help and I think I will -do- follow you