note 14283 rejected and deleted from function.exec.php by zak
| From: | zak@php.net | Date: | Wed, 25 Jul 2001 16:47:03 +0000 |
| Subject: | note 14283 rejected and deleted from function.exec.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15827@lists.php.net to get a copy of this message | ||
The usual system() in background.
I'm trying to use the following command to launch a long running php script into the background
and return the browser to the user immediately and let it run in the background. I'm not
worried about multiple executions as I've set limits on this elsewhere.
system("(/usr/bin/lynx -auth=$Client_Username:$Client_Password -dump "http://someurl.php?User=$Client_Num&List=$listchoice[$i]&Letter=$letterchoice"
| mail -s "Results of the list submission you made." $Client_Email)&");
It waits for a return, and the delay can be huge. I do not wish to impose a wait on the end user so
increasing the timeout isn't an option. What am I missing? I've tried several of the
suggestions here to no avail.