cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: question about using ftp to upload large file

From: xiao jc <favyx_at_msn.com>
Date: Fri, 26 Mar 2004 23:02:55 +0800

>From: Daniel Stenberg <daniel-curl_at_haxx.se>
>Reply-To: using curl with PHP <curl-and-php_at_cool.haxx.se>
>To: using curl with PHP <curl-and-php_at_cool.haxx.se>
>Subject: Re: question about using ftp to upload large file
>Date: Fri, 26 Mar 2004 12:38:04 +0100 (CET)
>
>On Fri, 26 Mar 2004, xiao jc wrote:
>
> > I use curl to upload large file to ftp server,but failed many times,
php
> > script only execute for about 300 secondes.
> >
> > I use php 4.3, ftp server is pureftp.
> >
> > Anyone have this problem?
>
>The problem that uploading takes time?

I think it's php's problem, because I test the following script:
<?php
$start_time = time();
while(1){
     sleep(3);
     $run_time = time() - $start_time;
     if($run_time>300){
          echo "run time: $run_time";
          break;
     }
}
?>

it does'n echo anything,

then I modify 300 to 290, it will echo result" run time: 294"...

I set execute_time,max_input_time,default_socket_timeout to 10000,

>--
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
Received on 2004-03-26