Jump to content

Need help for max_execution_time?


Momen

Recommended Posts

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,

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.