You are here: Re: [PHP] Copy Remote File to Local Server « PHP « IT news, forums, messages
Re: [PHP] Copy Remote File to Local Server

Posted by Matt Darby on 10/21/43 11:21

Wouldn't something like rsync be better suited for this?
I only ask because I've run something like this before...

Matt Darby

Richard Davey wrote:

>Hello Matt,
>
>Saturday, July 16, 2005, 3:04:29 AM, you wrote:
>
>MP> I am writing a script that will read a file from a remote server
>MP> and write it to the local server. It works fine except when large
>MP> files are attempted. It times out and gives the error that the
>MP> maximum execution time has been reached and the file will only be
>MP> partially copied to the local server. Is there a way around
>MP> something like this? Or perhaps could the script keep time of how
>MP> long it has been running will reading/writing and then be able to
>MP> continue writing to the partial file? Does anyone have any
>MP> suggestions for this problem?
>
>Providing you feel it's safe / user friendly to do so, just increase
>the time-out: set_time_limit()
>
>Best regards,
>
>Richard Davey
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация