note 70429 added to function.proc-open
| From: | mjutras at beenox dot com | Date: | Mon, 16 Oct 2006 13:28:20 +0000 |
| Subject: | note 70429 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118574@lists.php.net to get a copy of this message | ||
The best way on windows to open a process then to let the php script continue is to call your
process with the start command then to kill the "start" process and let your program run.
<?
$descriptorspec = array(
0 => array("pipe", "r"), // stdin
1 => array("pipe", "w"), // stdout
2 => array("pipe", "w") // stderr
);
$process = proc_open('start notepad.exe', $descriptorspec, $pipes);
sleep(1);
proc_close($process);
?>
The start command will be called then open notepad, after 1 second the "start" command
will be killed but the notepad will still opened and your php script can continue!
----
Server IP: 64.71.164.2
Probable Submitter: 66.48.31.22
----
Manual Page -- http://www.php.net/manual/en/function.proc-open.php
Edit -- https://master.php.net/note/edit/70429
Del: integrated -- https://master.php.net/note/delete/70429/integrated
Del: useless -- https://master.php.net/note/delete/70429/useless
Del: bad code -- https://master.php.net/note/delete/70429/bad+code
Del: spam -- https://master.php.net/note/delete/70429/spam
Del: non-english -- https://master.php.net/note/delete/70429/non-english
Del: in docs -- https://master.php.net/note/delete/70429/in+docs
Del: other reasons-- https://master.php.net/note/delete/70429
Reject -- https://master.php.net/note/reject/70429
Search -- https://master.php.net/manage/user-notes.php