note 57295 added to ref.exec

From: Date: Thu, 29 Sep 2005 16:58:56 +0000
Subject: note 57295 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-95990@lists.php.net to get a copy of this message
I faced the problem of putting a shell script as a backgroud process using both exec() and system() commands on a FreeBSD Server with PHP 4.4.0 I tried all the above mentioned methods but couldnt succeded, then i coded this script and am sure will work on all Linux flavors... See if ot helps you all guys... I Put my Shell Script in the variable $ExecCommand and used the proc_close and proc_open functions the code is as follows : proc_close (proc_open ($ExecCommand,array(),$somefun)); After the above line the rest of the usual php script continues.... Hope it helps you guys.. ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57295 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57295&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57295&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95990) next »