testing zendsvr6 and having these issues

The place for general PHP questions and hints for PHP on IBM i
Post Reply
stan7188
Posts: 1
Joined: Thu Jan 08, 2015 7:53 pm

testing zendsvr6 and having these issues

Post by stan7188 » Thu Jan 08, 2015 8:26 pm

1. when trying to debug a page in zendsvr6 it get "cannot detect running ide on local host" I found a post about port 10137, and i opened it but same error
2. The code below spits out $xmlout without the xml tags in it, and with there being 4 sets of data i cannot parse it correctly, number one above does not work so I dont know how to debug it, when I call the SP from an SQLRPGLE program it works fine.
// test list owners teams
$sql = 'call lstownleg(?,?)';
$stmt = db2_prepare($conn, $sql);
$xmlin='<?xml version="1.0"?><request><cid>00000013</cid></request>';
db2_bind_param($stmt, 1, "xmlin", DB2_PARAM_IN);
db2_bind_param($stmt, 2, "xmlout", DB2_PARAM_OUT);
$xmlout='';
echo " 1: {$xmlin}</br>";
db2_execute($stmt);
echo " 2: {$xmlout}</br>";

output from the above:
"1: 00000013
2: Dallas Magic Bullets11000000Old TimersForney Gators II1600000216 Tons O FunNM Stallions 2K02002000Big DogsI'll Think of Something07003001League 3001"

Please help we are trying to build a case to purchase your product, but I have to show proof of concept and I know very little about PHP

Thanks,
sid

Post Reply