I've been hashing this one out on the Database board recently, without any luck, but I now have some new info.
I need to run a PHP (containing an sql query) in the background, so that I can display a "query processing, please wait..." page. Some of my queries can take up to 3 minutes, which causes some browsers to timeout, so I would like to display a message that refreshes the browser. I had tried to do this using exec() or system(), but no luck.
Well, it turns out that my host, Yahoo! Web Hosting, doesn't allow these functions, or ANY Execution functions for that matter :0. The only one I've found that they do allow that may provide me with any hope is pfsockopen() (per note in php.net comments), but I can't seem to get it to work properly either.
Does anyone have any ideas on how to call a php from another 'parent' php and let it run in the background, without using any of the Program Execution Functions of PHP (system,passthru,exec,shellexec, etc.)? It does not need to return any values. Could pfsockopen() do the trick?
Any suggestions would be appreciated. Thanks