hi, [sorry for my poor english]
i used easyphp 1.5.0.0 for windows. i used shell_exec to call pgm on as400 and work fine :
$output = shell_exec ('cmd /c "rexec MYSERVER -l MYUSER -n <c:\MYFILE.ini call BIB/MYPROG (PARM1 PARM2)'");
print $output;
when i put the command in the variable, i have problem with the characters '<' and ':'
$var = "< ";
$var2 = ":";
$var3 = "c";
$var4 = $var.$var3.$var2;
$command = "'cmd /c rexec MYSERVER -l MYUSER -n ".$var4."\test.ini call BIB/MYPROG (PARM1 ";
$parm2 = "www";
$command = $command .$parm2.")' ";
print $command is good.
BUT
shell_exec($command) failed, Apach server failed with no error log...
what happen? my command is not available?
thank you
😕