Reply to exec hangs up sometimes

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация