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

Posted by Iv�n S�nchez Ortega on 08/16/07 23:47

Fabio wrote:

>> 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.
>
> I already looked at this, but I don't understand how to use it in the way
> I need.

It's just a wrapper to the POSIX fork() system call... Any course about
concurrent programming teaches about forking a process. I suggest you to go
back to the books.

> PCNTL functions are also not supported by non-Unix platforms (Windows) and
> I read somewhere that has some problem with Apache...
> Something else?

Invoke the CreateProcess() w32 API call.

http://www.php.net/manual/en/function.w32api-invoke-function.php
http://msdn2.microsoft.com/en-us/library/ms682425.aspx

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

http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net

 

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

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