// Assume $conn is the toolkit connection variable
// directory command is good example
$cmd = "ls /www/zendsvr";
echo "Running command in PASE: $cmd<BR><BR>";
$rows = $conn->paseCommand($cmd); // in PHP toolkit version 1.4.0+
if(!$rows ) {
// error
echo $conn->getLastError();
} else {
// output results
echo "Output: <BR><pre>" . var_export($rows, true) . "</pre>";
}
Return to Zend Server for IBM i
Users browsing this forum: No registered users and 1 guest