note 119258 added to function.exec

From: Date: Thu, 28 Apr 2016 09:09:37 +0000
Subject: note 119258 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-205387@lists.php.net to get a copy of this message
Something you guys might find helpful: If you guys start a process or e.g. a script which starts processes sub processes, look that you uncouple them from your php script. Otherwise you get the same problem as I, your php script will wait to get the feedback from the server. So it will wait until the sub processes are dead. I know two ways to counter that, one way is to make sure the sub processes dont get linked to the parent process. The other way is to fire and forget with php (on Unix/Linux just add "/dev/null 2>&1 &" to end of your command, but you should remember you wont get any output from the process.) Hope that will help some of you, I had a while until I came on this idea. ---- Server IP: 72.52.91.14 Probable Submitter: 165.222.184.140 ---- Manual Page -- http://php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/119258 Del: integrated -- https://master.php.net/note/delete/119258/integrated Del: useless -- https://master.php.net/note/delete/119258/useless Del: bad code -- https://master.php.net/note/delete/119258/bad+code Del: spam -- https://master.php.net/note/delete/119258/spam Del: non-english -- https://master.php.net/note/delete/119258/non-english Del: in docs -- https://master.php.net/note/delete/119258/in+docs Del: other reasons-- https://master.php.net/note/delete/119258 Reject -- https://master.php.net/note/reject/119258 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#205387) next »