We can increase it in different ways based on server
Method 1: It will work in most servers. Add this function in top of page.
ini_set('max_execution_time', 600); //600 seconds
Method 2: We can set it by using .htaccess. Adding the below line in .htaccess file. It will work almost all servers.
max_execution_time 600
Method 3: If it is localhost. Open php.ini file and this word ('max_execution_time') where you can see like this by default max_execution_time = 30. You can change that 30 to your required based on your execution time for example (600) after that you have to restart the apache server.
No comments:
Post a Comment