FPUT in background??
Posted 23 August 2006 - 02:29 PM
I've a script that takes POST data, processes it in several ways, then sends the data off in a "repost" using fput to another website address, then makes its ending response.
The fputting is all done via a custom function. But depending on the remote site, this can take a few seconds to process.
I want to be able to run my custom fput function, then just continue script execution. As opposed to waiting for fput function to finish.
I've done some searching, the only thing I could turn up were "exec" tricks. I wanted to avoid such methods.
Doesn't PHP have a simple way of executing commands/functions in the background? Wow that would speed a lot of things up for the end-user.
Thank you in advance for your help!
Posted 23 August 2006 - 02:36 PM
Doesn't PHP have a simple way of executing commands/functions in the background?
Put simply, no. You could however look into forking though it is NOT recomended within a web server environment and in most cases would actually be disabled on a shared server.
Posted 23 August 2006 - 03:37 PM
Back to the drawing board
Posted 23 August 2006 - 03:47 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users