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

Posted by Ivn Snchez Ortega on 08/16/07 20:22

Fabio wrote:

> $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?

Use pnctl_fork() and his friends. You'll get the PID of the process, and
you'll be able to kill it based on that.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

El espacio es una ilusión. El espacio en disco es aún más.

 

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

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