note 26939 rejected from function.pcntl-exec by maxim
| From: | maxim@php.net | Date: | Mon, 18 Nov 2002 17:14:18 +0000 |
| Subject: | note 26939 rejected from function.pcntl-exec by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39646@lists.php.net to get a copy of this message | ||
//If you are in php version between 4.1.2 and 4.*
//When you use pcntl_fork and after you want use
//pcntl_exec, you can because pcntl_exec isn't used before
//php 4.* so let me show a solution :
$CHILD_PID = pcntl_fork();
if($CHILD_PID == 0)
{ include ($script_path);
exit;
}
//$script_path is the *.php page which you want lauch like
// a child .
//I don't know why php coder hadn't add pcntl_exec in the
//same time that other function
//Michaël F. php developer .