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]
|