I'm trying to learn my way around Zend Studio, and the php code executed from a browser works fine. But, when I try to debug as php script, I get the following error:
Debug Error: [path to php file] line 8 - Call to undefined function db2_connect()
Fatal error: Call to undefined function db2_connect() in [path to php file] on line 8
And here are the first few lines of code:
I checked the Zend Server admin browser page, and Zend Debugger is turned on.
I am also only on the trial (30-day) version of Zend Studio.
Anyone have any suggestions?
Debug Error: [path to php file] line 8 - Call to undefined function db2_connect()
Fatal error: Call to undefined function db2_connect() in [path to php file] on line 8
And here are the first few lines of code:
Code:
<?php
// Connect to the database
$database = "*LOCAL";
$user = "";
$password = "";
$hostname = "localhost";
$conn_rsrc = db2_connect($database, $user, $password);
if (!$conn_rsrc){
echo "Connection failed. SQL ERR:";
echo db2_conn_error();
echo "<br />";
echo db2_conn_errormsg();
exit();
}
I am also only on the trial (30-day) version of Zend Studio.
Anyone have any suggestions?


Comment