Re: Sorry if repost - more ftp problems
| From: | phplist at comunica2 dot net | Date: | Fri, 13 Dec 2002 10:14:07 +0000 |
| Subject: | Re: Sorry if repost - more ftp problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128143@lists.php.net to get a copy of this message | ||
> Fatal error: Maximum execution time of 90 seconds exceeded in
:\apache\htdocs\fnusa\releases\ftp.php on line 28
This means that after entering in passive mode it has used 90 seconds of
processor time and times out. Set this timeout higher in php.ini. And I
would add this to the source just before the most time consuming statement:
.
.
.
set_time_limit();
fputs( $fp, "STOR $source_file\r\n" );
.
.
.
When called, set_time_limit() restarts the timeout counter from zero. Still
when the uploading takes more than 90 seconds, it will be interrupted. And
in fact you will never know how long it takes.