note 51599 deleted from function.exec by cmb

From: Date: Sun, 24 Nov 2019 08:44:50 +0000
Subject: note 51599 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213205@lists.php.net to get a copy of this message
Note Submitter: netshadow at madpoets dot org ---- For Win2k/XP systems, and probably NT as well, after beating my head against a wall for a few days on this, I finally found a foolproof way of backgrounding processes and continuing the script. For some strange reason I just could not seem to get backgrounding to work with either system or exec, or with the wsh.run method for that matter. I have used all three in the past with success, but it just wasn't happening this time. What I finally wound up doing was using psexec from the pstools package found at http://www.sysinternals.com/ntw2k/freeware/pstools.shtml You would use it like: exec("psexec -d blah.bat"); which will start and immediately background blah.bat and immediately resume running the rest of the php script.

« previous php.notes (#213205) next »