AncientSage Posted July 7, 2006 Share Posted July 7, 2006 Hello, I've got an HTML/PHP upload script, the script uploads to an external server via FTP, however, when trying to upload bigger files (over a few MB) then the script times out. Smaller files work easily though, anyway, does anyone know of a solution for such a problem? Also, I use ...[code] <input type="hidden" name="MAX_FILE_SIZE" value="10000">[/code] ...for the max file size, I'd assume that's in KB not bytes, right? Would it be better to use php instead of this to determine the max file size?Thanks.Note: I do not have access to a php.ini file if it is needed... Quote Link to comment https://forums.phpfreaks.com/topic/13916-ftp-upload-script-timing-out/ Share on other sites More sharing options...
toplay Posted July 7, 2006 Share Posted July 7, 2006 Increase the execution time limit to something higher (or use zero for no limit). See:http://us2.php.net/manual/en/function.set-time-limit.php[quote]The MAX_FILE_SIZE hidden field (measured in bytes) must precede the file input field, and its value is the maximum filesize accepted.[/quote]Quote from: http://us2.php.net/manual/en/features.file-upload.php#AEN7085 Quote Link to comment https://forums.phpfreaks.com/topic/13916-ftp-upload-script-timing-out/#findComment-54207 Share on other sites More sharing options...
AncientSage Posted July 7, 2006 Author Share Posted July 7, 2006 Ah, thanks...that should be helpful. Quote Link to comment https://forums.phpfreaks.com/topic/13916-ftp-upload-script-timing-out/#findComment-54210 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.