Re: [PHP] Basic question - Starting a background task without waiting for its end.
- From: jochem@xxxxxxxxxxxxx (Jochem Maas)
- Date: Sun, 31 Dec 2006 19:06:39 +0100
Michel wrote:
I (very simply) try to open a "notepad" on a simple text file in a
simplistic PHP script, and would like to go on and display the next page
without waiting for this notepad to be shut.
After various attempts, I have used an :
exec ('bash -c cmd /C start /MAX notepad "my_file" > NUL');
... but it still wait for the shutting of the notepad ..!
interesting question, I didn't really come up with an answer (maybe someone with real voodoo
powers know the 'proper' answer) but I did find this page (which hopefully provides
a useful work around [all kudos to the guy named Mike]):
http://www.naken.cc/mikehup.php
.
Could anybody help me ?
For clarification :
1) I use this script on a machine which is in the same time "server" and
"client", which gives "meaning" to this operation.
2) I use "bash -c" because I have the cygwin platform which can easily
initiate tasks in background, but it could be suppressed, because it "de
facto" changes nothing...
Thank's for help.
Michel.
- References:
- Prev by Date: Basic question - Starting a background task without waiting for its end.
- Next by Date: Re: [PHP] Script's length, echo, and execution speed
- Previous by thread: Basic question - Starting a background task without waiting for its end.
- Index(es):