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
call to undefined function db2_connect
- kentatzend
- Posts: 1778
- Joined: Thu Dec 11, 2008 1:08 pm
Re: call to undefined function db2_connect
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.