cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: downloading file from a link

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Wed, 1 Jun 2005 03:51:59 -0500

On 6/1/05, Daniel Stenberg <daniel-curl_at_haxx.se> wrote:
> On Wed, 1 Jun 2005, Carlo Dominguez wrote:
>
> > Tried putting fclose($out). now i'm having this error :(
> >
> > Fatal error: Maximum execution time of 30 seconds exceeded in
> > C:\A_CNET\file.php on line 56
>
> I _think_ it means that the maximum execution time of 30 seconds has been
> exceeded...

30 seconds being the default max execution time built into PHP, unless
you change it in php.ini. Unless you're running the script in safe
mode, you can alter the max exec time like this:

     set_time_limit(60);

to get 60 seconds run time, according to the PHP manual.

Ralph Mitchell
Received on 2005-06-01