Hi
I have associated .phpw with php-win.exe on my windows pc. I create a small test-script with this:
[code=php]
$program = “ping 127.0.0.1”;
$program2 = “D:\myfolder\myprogram”;
exec($program,$return_array);
exec($program2,$return_array2);
When running this from a browser or command line php, everything works ok (the return arrays are filled with expected info). But if I launch the phpw-file only the first exec (ping) works. The return array of the second exec is empty. “myprogram” is just a small dos-program which does some stuff.
The strange thing is that myprogram seems to do “something” because if I add switches to it which cause it to take longer time, the launch of the .phpw will take longer. But it’s not doing anything, since some switches should cause it to create a file on disk. I even tried to chdir(myfolder), without any success.
So, exec of myprogram works from web and php command line, but not when launching with php-win. Any ideas/advice?
Thanks
Lubox