rondog Posted February 22, 2011 Share Posted February 22, 2011 I have a flash application that talks to upload.php Say I upload a 500mb file; it will obviously take a little while to upload. Will the max_execution_time settings cause this to fail? Its set at 60 right now and the upload is obviously taking longer than 1 minute. Quote Link to comment https://forums.phpfreaks.com/topic/228511-uploading-large-files/ Share on other sites More sharing options...
ale8oneboy Posted February 22, 2011 Share Posted February 22, 2011 The max execute time would come into play as well as other PHP ini variables. Take a look at: max_post_size and upload_max_filesize Quote Link to comment https://forums.phpfreaks.com/topic/228511-uploading-large-files/#findComment-1178254 Share on other sites More sharing options...
PaulRyan Posted February 22, 2011 Share Posted February 22, 2011 Also take a look at set_time_limit while you're at it... Regards, PaulRyan. Quote Link to comment https://forums.phpfreaks.com/topic/228511-uploading-large-files/#findComment-1178255 Share on other sites More sharing options...
PFMaBiSmAd Posted February 22, 2011 Share Posted February 22, 2011 The max_execution_time isn't actually part of the time taken to upload the file - Note: max_execution_time only affects the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), the sleep() function, database queries, time taken by the file upload process, etc. is not included when determining the maximum time that the script has been running. Warning max_input_time sets the maximum time, in seconds, the script is allowed to receive input; this includes file uploads. For large or multiple files, or users on slower connections, the default of 60 seconds may be exceeded. Quote Link to comment https://forums.phpfreaks.com/topic/228511-uploading-large-files/#findComment-1178260 Share on other sites More sharing options...
rondog Posted February 22, 2011 Author Share Posted February 22, 2011 The max_execution_time isn't actually part of the time taken to upload the file - Note: max_execution_time only affects the execution time of the script itself. Any time spent on activity that happens outside the execution of the script such as system calls using system(), the sleep() function, database queries, time taken by the file upload process, etc. is not included when determining the maximum time that the script has been running. Warning max_input_time sets the maximum time, in seconds, the script is allowed to receive input; this includes file uploads. For large or multiple files, or users on slower connections, the default of 60 seconds may be exceeded. Ahhh so I want to increase max_input_time, not execution time. Got it! I will also look at max_post_size. I've already changed upload_max_filesize Quote Link to comment https://forums.phpfreaks.com/topic/228511-uploading-large-files/#findComment-1178272 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.