pcntl_fork() を使用して、XAMPP php プロセスを実行するコマンド ラインをフォークしようとしています。以下のコマンドを実行すると:
$pid = pcntl_fork();
if($pid == -1){
file_put_contents('testlog.log',"\r\nFork Test",FILE_APPEND);
return 1; //error
}
else if($pid){
return 0; //success
}
else{
file_put_contents($log, 'Running...', FILE_APPEND);
}
私は得る:
Fatal error: Call to undefined function pcntl_fork()
誰でもこれを修正する方法を提案できますか?