fsockopen child scripts not running

Hi all,

fsockopen child scripts are not running to completion when the parent scripts die. It is run in the non-blocking mode. So the parent script continues to run after invoking the child script:

stream_set_blocking($fp, false); or stream_set_blocking($fp, 0);

But the child script only runs as long as the parent script is running. I found this out using sleep method in the parent script.
The same method is working in my local dev environment, but is not working when it gets uploaded onto the server. It is also working in another module on the same server,but not on this module.

Any help? Has anyone encountered this problem before?

Sponsor our Newsletter | Privacy Policy | Terms of Service