You are here: Execute and kill a process « PHP Programming Language « IT news, forums, messages
Execute and kill a process

Posted by Fabio on 08/16/07 20:15

Hi all,

I need to simulate the execution of code on another thread an the only way I
found is to launch a .php file with popen().

with

$process = popen(...);

the execution starts, but in the .php file may be an infinite loop that I
want to break.
There is the possibility to kill the process?

If the loop is not infinite and the script in the .php file ends I have to
call pclose($process) or the process terminate itself?

If there is another way to simulate multithread it is wellcome, but working
on the system, not via http.

Thanks!

 

Navigation:

[Reply to this 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

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