Can I set the following PHP configuration parameters as follows:
max_execution_time = 360
max_input_time 360
Is that safe and efficient ?
I actually need my user to upload large videos with the php-based Content Management System.
So, each video upload takes some minutes. Do I need to change both and the values are good ?
thanks
In my understanding, you have to change neither.
If you just store the video files using
move_uploaded_file, you will not need to increase yourmax_execution_timeas upload time does not count towards execution time.The manual says the following about
max_input_time(emphasis mine):I have not tested this, but to me this sounds like it doesn’t include the actual time the client spends uploading the file, just the time it takes to copy it to the temporary directory. I can’t vouch for this though, and I can’t find any info on it. The default of 60 seconds should be ample time to parse many hundreds of megabytes of files.
I’d recommend to find out the perfect value using real-life tests. If your connection is too fast, use a tool to slow it down. See this SO question for suggestions:
Network tools that simulate slow network connection