Page 1 of 1

call to undefined function db2_connect

Posted: Mon Dec 06, 2010 8:45 pm
by debharinnr
When I run a php script from www/zendsvr/htdocs that contains db2_connect from the browser the database connection works fine. If I run a php script from my zend studio that resides in C:\Program Files\Zend\Apache2\htdocs\ I get a call to undefined function db2_connect. Can someone tell me what I'm doing wrong?

Thanks, Harry

Re: call to undefined function db2_connect

Posted: Tue Dec 07, 2010 4:29 pm
by kentatzend
If you are trying to run it locally as a script it will probably fail unless you have a properly set up local environment. You probably need to "Run as web page" or "Debug as Web page" raher than run as script.