note 26939 added to function.pcntl-exec

From: Date: Mon, 18 Nov 2002 16:11:58 +0000
Subject: note 26939 added to function.pcntl-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-39640@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 . -- http://www.php.net/manual/en/function.pcntl-exec.php http://master.php.net/manage/user-notes.php?action=edit+26939 http://master.php.net/manage/user-notes.php?action=delete+26939 http://master.php.net/manage/user-notes.php?action=reject+26939

« previous php.notes (#39640) next »