|
Posted by warth33 on 04/29/07 20:06
This is a quite misterious problem. I have a php-script that first
calls an executable program with
$ret = exec('program.exe');
and then continues outputting html. Well, most of the times it workes
fine. But sometime, without any speciual reasons, something goes
wrong. And when something goes wrong it becomes a real problem. Yes,
because nest time I run the script then it will hang up. The script
waits for the response from the exe-program, but never gets it. At the
end the page will timeout. This is not good.
After this has happen I am not able to run any script that will use
the exec-command. Doesnt matter what exe I will call. The .exe-file
works without any problem even after the problem with the script
occured.
The only thing I can do right now, in order to make the exec-command
to work again, is to restart apache. For the kind of application Im
developing this is not an acceptable solution.
I dont think this has something to do with safe mode. I guess that it
would not allow exec at all if set as OFF. Anybody with a good advice?
[Back to original message]
|