note 70429 deleted from function.proc-open by cmb

From: Date: Sun, 01 Dec 2019 09:08:04 +0000
Subject: note 70429 deleted from function.proc-open by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213339@lists.php.net to get a copy of this message
Note Submitter: mjutras at beenox dot com ---- 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!

« previous php.notes (#213339) next »