Re: [PHP] Server Stall

2007-02-06 Thread Stut
Sancar Saran wrote: Yes you are absolute right. Session was locked... Thanks for info :) No problem, but please include the list in replies especially when you're confirming a possible explanation. It helps improve the usefulness of the archives. -Stut On Tuesday 06 February 2007 13:54,

Re: [PHP] Server Stall

2007-02-06 Thread Stut
Sancar Saran wrote: I think php does not open second thread for same session... Does your script use sessions? If so, then your problem has nothing to do with anything the script is doing and everything to do with PHP locking sessions. * Request 1 does a start_session(), and PHP locks the s

Re: [PHP] Server Stall

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 11:42 am, Sancar Saran wrote: > Hi, > > One of my scripts are using wget to get external xml data > > $fp = popen ("wget -O - '".$dst."' | cat","r"); > > Some time $dst host responds very slowly. And that time if I open > another > connection to same server the second reque

Re: [PHP] Server Stall

2007-02-05 Thread Sancar Saran
Hi, Matt Thanks for answer, I try your solution and use it. And interestingly I found this, If my request coming from second tab of firefox it will wait util first request done. I think php does not open second thread for same session... Anyway thanks for answer. It was very useful.. Regards

Re: [PHP] Server Stall

2007-02-05 Thread Matt Carlson
If you have cURL installed, you could use Curl to get the file, and manipulate the contents that way. Here is the standard function I use for grabbing a remote page. function doRequest($method, $url, $vars = '', $headers = '0') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);