php - Parms were split on blanks -
call php ibm server zendserver sent few parms php script. on 1 of our machines parms split on blanks ? why ? in doublequotes ??
call pgm(qp2shell) + parm('/usr/local/zendsvr/bin/php-cli' + '/www/zendsvr/htdocs/test/t1.php' + 'hallo test' + 'p2' + 'p3')
in php args array contains
[0] => /www/zendsvr/htdocs/idsmail/t1.php5 [1] => hallo [2] => test [3] => p2 [4] => p3
on other machines same program works fine ??
any ideas ?
bye jogi
if example looks cl code, you've got many +
signs. in source code, cl commands terminate @ end of line. if command continues onto line indicate +
symbol. in context not meant concatenation operator (which ||
). spaces suffice separate parameters.
you don't need +
signs on 4th line, seen arithmetic operators. should solve problem:
call pgm(qp2shell) + parm('/usr/local/zendsvr/bin/php-cli' + '/www/zendsvr/htdocs/test/t1.php' + 'hallo test' 'p2' 'p3')
the keywords pgm , parm not required, personally, write this:
call qp2shell ('/usr/local/zendsvr/bin/php-cli' + '/www/zendsvr/htdocs/test/t1.php' + 'hallo test' + 'p2' + 'p3' + )
Comments
Post a Comment