Re: On register_shutdown_function: What might be the problem?
| From: | Jasper Bryant-Greene | Date: | Sat, 23 Jul 2005 03:37:55 +0000 |
| Subject: | Re: On register_shutdown_function: What might be the problem? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219243@lists.php.net to get a copy of this message | ||
Liang ZHONG wrote:
What is the correct way to keep the function running after I redirect an existing page to http client (which I want the client get immediately) and then immediately close the connection?Use the execution functions to call an external script that performs the tasks you want performed. If you execute, for example, "/some/path/somescript &", then the exec() function will return immediately and somescript will continue to run. Jasper