How to increase the execution timeout in php?

Override The Default PHP Execution Timeout

How to increase Execution Timeout? I want to upload large size of file like video, but large size of videos not get uploaded

we need to Override The Default PHP Execution Timeout using following methods

1 – changing the script execution timeout using php.ini setting
2 – changing the script execution timeout using PHP function set_time_limit()
3 – changing the script execution timeout using PHP function ini_set()
4 – changing the script execution timeout using .htaccess

changing the script execution timeout using php.ini setting

first you need to find out your php.ini file location and need to alter , one can find php.ini location using phpinfo() function

changing the script execution timeout using PHP function set_time_limit()

you can override script execution timeout using php function set_time_limit()

Example

changing the script execution timeout using PHP function ini_set()

you can override script execution timeout using PHP function ini_set()

Example

changing the script execution timeout using .htaccess

you can override script execution timeout using .htaccess

Example

Leave a Reply

Your email address will not be published. Required fields are marked *