|
Posted by Erwin Moller on 11/15/06 14:41
Terry wrote:
>
> I'm using curl to invoke a php script on the same site/server. It works
> great, but if I call it again while it's still running, nothing happens.
>
> Why? Can that be fixed?
>
> Why use curl? To make it run in the background. My host can't use exec
> nor flush the output to the browser. But, I can use curl and timeout.
Hi,
Maybe SESSIONs are involved?
PHP serves only 1 page to a single user untill that one ends (if you use
sessions).
The reason is this:
1) First request uses session, and gets a lock on the sessionstoragefile
2) first scripts keeps running....
3) Second call to some script wants to use the same session.
4) Second call hangs and waits for the first to finish, so it can get a lock
on the sessionfile.
Could this be your scenario? Does you app use sessions?
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|