Momen Posted February 4, 2012 Share Posted February 4, 2012 Hello, I have file hosting website, and the maximum size to upload is 1900MB and there are my: upload_max_filesize : 1900MB post_max_size : 2000 MB max_execution_time : 300 max_input_time : 600 now, can you explain to me what is max_execution_time and input_time? and what is the best numbers for them to be fit with upload_max_filesize and post_max_size ? many thanks, Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/ Share on other sites More sharing options...
Momen Posted February 4, 2012 Author Share Posted February 4, 2012 Because i'm having a problem while uploading files bigger than 800mb + my internet connection is slow at uploading, I heard that affects max_execution_time, am i right? Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314532 Share on other sites More sharing options...
Danny696 Posted February 4, 2012 Share Posted February 4, 2012 max_execution_time is exactly what it says on the tin. The maximum time to execute the code before it times out. This can be changed via the php.ini file, or I do believe via the set_time_limit(int $TimeOutInSeconds) php function. max_input_time is the time that php is allowed to parse the input data, e.g GET and POST, which can again be changed via the php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314536 Share on other sites More sharing options...
Momen Posted February 4, 2012 Author Share Posted February 4, 2012 max_execution_time is exactly what it says on the tin. The maximum time to execute the code before it times out. This can be changed via the php.ini file, or I do believe via the set_time_limit(int $TimeOutInSeconds) php function. max_input_time is the time that php is allowed to parse the input data, e.g GET and POST, which can again be changed via the php.ini file. Thank you! but what do you advise to put numbers for them? Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314538 Share on other sites More sharing options...
Danny696 Posted February 4, 2012 Share Posted February 4, 2012 It really depends on your script, I do believe you can use 0 for an infinite time, which could be preferred for a file hosting site. Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314541 Share on other sites More sharing options...
Momen Posted February 4, 2012 Author Share Posted February 4, 2012 It really depends on your script, I do believe you can use 0 for an infinite time, which could be preferred for a file hosting site. Yes, but I heard it is not safe? Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314546 Share on other sites More sharing options...
noXstyle Posted February 4, 2012 Share Posted February 4, 2012 Hold on a moment here, making max_exec time 0 on a live server is a huge mistake. Having that infinite loop clogging up the server will take some edge off for sure... Check the php manual: The maximum execution time is not affected by system calls, stream operations etc. Therefore max_exec should not affect uploading, rather the script execution starts after the data is received. Quote Link to comment https://forums.phpfreaks.com/topic/256410-need-help-for-max_execution_time/#findComment-1314548 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.