Hi everybody, this is my environment : Apache is installed on a Linux server
(RedHat9A) and
I launch the browser on a PC running WindowsXP to execute php scripts on the
Linux server.
I would run Win executables from this Linux-based Apache server.
Actually if I use exec() command running Linux commands, something like :
$command="mv /store1/www/file1.txt /store1/www/file2.txt";
exec($command, $ar_output, $res_command);
echo "res_command=". $res_command;
it returns : res_command=0 and all works fine.
The problem arises when I try to use the same exec command for running
applications in the PC, e.g.:
$command="C:\\P rograms\\WINEDI T.EXE";
exec($command, $ar_output, $res_command);
echo "res_command=". $res_command;
Now it returns : res_command=127 and it does not work ( = it does not start
WINEDIT.EXE)
What is missing or wrong in my job?
Any suggestion or hint will be very useful, thanks in advance for your help.
Regards,
Paolo
(RedHat9A) and
I launch the browser on a PC running WindowsXP to execute php scripts on the
Linux server.
I would run Win executables from this Linux-based Apache server.
Actually if I use exec() command running Linux commands, something like :
$command="mv /store1/www/file1.txt /store1/www/file2.txt";
exec($command, $ar_output, $res_command);
echo "res_command=". $res_command;
it returns : res_command=0 and all works fine.
The problem arises when I try to use the same exec command for running
applications in the PC, e.g.:
$command="C:\\P rograms\\WINEDI T.EXE";
exec($command, $ar_output, $res_command);
echo "res_command=". $res_command;
Now it returns : res_command=127 and it does not work ( = it does not start
WINEDIT.EXE)
What is missing or wrong in my job?
Any suggestion or hint will be very useful, thanks in advance for your help.
Regards,
Paolo
Comment