ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Debugging with Zend Studio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debugging with Zend Studio

    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:
    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 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?

  • #2
    Re: Debugging with Zend Studio

    I'm pretty sure I should have downloaded the full IBM i version of Zend Studio instead of the trial version. I'll get that done and see if it fixes the debugging issues.

    Comment

    Working...
    X