You are here: Re: curl twice « PHP Programming Language « IT news, forums, messages
Re: curl twice

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация