Fatal error: Call to undefined function odbc_connect()

General discussion on Zend Studio for IBM System i
Post Reply
trapez
Posts: 2
Joined: Thu Jun 09, 2011 4:55 pm

Fatal error: Call to undefined function odbc_connect()

Post by trapez » Thu Jun 09, 2011 5:08 pm

From within Zend Studio - every time I try to run a php script with an api such as "odbc_connect" or db2_connect I get the message:
"Fatal error: Call to undefined function odbc_connect() in C:\Documents and Settings\..."

Does it have something to do with the fact that the script is being called from the PC and not on the IBM i ???

How can I call the PHP script from the i box ????

I didnt seem to have all these problems prior to installing the license key

Any feed back will help.

NOTE: everything works fine if called from the browser, the problems only exist when called from Zend Studio.

trapez01
Posts: 3
Joined: Fri May 20, 2011 1:40 am

Re: Fatal error: Call to undefined function odbc_connect()

Post by trapez01 » Tue Jun 14, 2011 1:19 am

Zend Studio is nothing but garbage, with 0 support.

Moving on to NuSphere ...works like a charm!

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

Re: Fatal error: Call to undefined function odbc_connect()

Post by kentatzend » Tue Jun 14, 2011 3:51 pm

Yes the problem is that you're running the script locally and the PHP CLI you're running the script in does not have the right extensions. What you need to do is either use a PHP locally with the right extensions (you can set up a different local PHP) or set it up with remote systems to put the files on your IBM system and run it as a web page. As an alternative you could install Zend Server CE locally and run the test locally and it probably would work too.

Post Reply