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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php