Execute a script independent from the main script
Moderator: General Moderators
Execute a script independent from the main script
Hello. I want to start a script from within another one and I want to child script to keep running even if the parent script stops. Can this be done? I know it can be done with exec, shell_exec, system, proc_open, popen, and so on. But what if the hosting company has disabled these functions. Is there any way to do this?
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
If they've disabled those functions, you're generally boned on the others.
cURL may be able to generate a remote request for the file (that doesn't wait), as could fsockopen(), fopen() and file_get_contents() (given proper directives are enabled.)
cURL may be able to generate a remote request for the file (that doesn't wait), as could fsockopen(), fopen() and file_get_contents() (given proper directives are enabled.)