note 27007 added to function.pcntl-exec
| From: | michael dot ferre at mobileway dot com | Date: | Wed, 20 Nov 2002 09:28:23 +0000 |
| Subject: | note 27007 added to function.pcntl-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39748@lists.php.net to get a copy of this message | ||
//To complete my last note
//If you use some object in your php code
//You will have some problem if you do a exit after include the
//child scripts
//You must use posix_kill() like that :
$CHILD_PID = pcntl_fork();
if($CHILD_PID == 0)
{
include ($script_path);
posix_kill(getmypid(),9);
}
//This code is very simple it can be ameliorate ;)
--
http://www.php.net/manual/en/function.pcntl-exec.php
http://master.php.net/manage/user-notes.php?action=edit+27007
http://master.php.net/manage/user-notes.php?action=delete+27007
http://master.php.net/manage/user-notes.php?action=reject+27007