note 26974 added to function.pcntl-exec

From: Date: Tue, 19 Nov 2002 10:19:21 +0000
Subject: note 26974 added to function.pcntl-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-39689@lists.php.net to get a copy of this message
//If you are in php version between 4.1 and 4.2 //When you use pcntl_fork and after you want use //pcntl_exec, you can because pcntl_exec isn't used before //php 4.2 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+26974 http://master.php.net/manage/user-notes.php?action=delete+26974 http://master.php.net/manage/user-notes.php?action=reject+26974

« previous php.notes (#39689) next »