Copy Remote File to Local Server
| From: | Matt Palermo | Date: | Sat, 16 Jul 2005 02:04:29 +0000 |
| Subject: | Copy Remote File to Local Server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-218791@lists.php.net to get a copy of this message | ||
I am writing a script that will read a file from a remote server and write
it to the local server. It works fine except when large files are
attempted. It times out and gives the error that the maximum execution time
has been reached and the file will only be partially copied to the local
server. Is there a way around something like this? Or perhaps could the
script keep time of how long it has been running will reading/writing and
then be able to continue writing to the partial file? Does anyone have any
suggestions for this problem?
Thanks,
Matt Palermo
http://sweetphp.com