note 57079 added to ref.exec

From: Date: Fri, 23 Sep 2005 02:15:29 +0000
Subject: note 57079 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-95637@lists.php.net to get a copy of this message
To tell you the truth, I don't know how... or why... this works, but I am able to spawn background win32 processes whereby the PHP interpreter does not wait on the called program to finish... <?php pclose(popen("start /b <program> <args>", 'r')); ?> I don't know wheither pclose is neccesary or not, but I can only guess that it frees up memory. an example would be <?php pclose(popen("start /b C:\php\cli\php script.php', 'r')); // rest of the program ?> where script.php would execute independantly of the parent script.. hope this helps, Harry ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57079 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57079&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57079&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95637) next »