call to undefined function db2_connect

General discussion on Zend Studio for IBM System i
Post Reply
debharinnr
Posts: 1
Joined: Mon Dec 06, 2010 8:40 pm

call to undefined function db2_connect

Post by debharinnr » Mon Dec 06, 2010 8:45 pm

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

User avatar
kentatzend
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: call to undefined function db2_connect

Post by kentatzend » Tue Dec 07, 2010 4:29 pm

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.

Post Reply