curl-and-php
Re: PHP & Curl - Timeout
Date: Thu, 12 Jun 2003 17:52:49 +0200 (CEST)
On Thu, 12 Jun 2003, "Thomas Bähr [Office]" wrote:
> it works find for small files (the file includes an xml file + grafic
> datas) and worked with around 2 MB
>
> but if i try this with a bigger file [around 28 MB with 480 rows of data]
> the execution seems to timeout
It is your browser that times out, isn't it?
> i looked at the servlet and saw that it still processes my file so i guess
> its a Timeout problem with the curl_exec() function !?!? i even tried
> curl_setopt($ch, CURLOPT_TIMEOUT, 32000); with only the same result.
So why would a timeout on the curl operation change anything?
> php max_execution_time is set to 3000 which is around 50 min but the upload
> ends after around 430 seconds
I doubt that your PHP settings change the timeout value for your browser.
> is there something else i should watch out !? Any other solutions which
> might help in that case !?
AFAICT your only hope is to return data faster to the browser.
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5Received on 2003-06-12