|
Posted by Richard Davey on 10/21/83 11:21
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
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov
[Back to original message]
|