How can I change the max_execution_time value for a specific script?
Now in php.ini the setting max_execution_time = 600 is enough for me. But there is a sitemap.php file that generates a sitemap in about 3 hours. I need to set max_execution_time = 15000 for it
Added variables to the file itself:
ini_set('max_execution_time', 15000);
set_time_limit(0);
The result is zero. The script still breaks after 10 minutes.