note 49152 added to ref.exec

From: Date: Tue, 18 Jan 2005 11:10:05 +0000
Subject: note 49152 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-83548@lists.php.net to get a copy of this message
Well, I had this issue when I wanted to start an indefinitely running PERL script from PHP. Somehow I could not make the PHP script to return after executing the PERL script. So finally I came to following solution: PHP file ------------------- <?php exec("perl /home/chatserver.pl > /dev/null"); ?> ------------------- This script will be run over HTTP. PERL file ------------------- #!/usr/bin/perl fork and exit 1; # normal code here... ------------------- Hopefully it helps someone :) Margus ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49152 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49152&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49152&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49152&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49152&report=yes&reason=useless+example Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49152&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49152&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#83548) next »