Error: Maximum execution time of 30 seconds exceeded
I was facing problem of this error. Since there is two type of cPanel servers.
but my problem was not solved.
so I tried this rule.
I added this code at the top of php script. that running the script for uploading or downloading
now my problem is solved.
- Apache module ( In "Apache module", you can change your PHP settings via a .htaccess file )
- CGI Module ( you can change your local php.ini file in order to make modifications to your PHP setup. php.ini )
My cPanel Server is CGI so I tried all the php.ini file by adding these details:-
max_execution_time = 300 max_input_time = 600 memory_limit = 2560M upload_max_filesize = 100M
but my problem was not solved.
so I tried this rule.
I added this code at the top of php script. that running the script for uploading or downloading
ini_set('max_execution_time', 300);
now my problem is solved.