How is it possible to set an infinite execution time for PHP script? Technology Community › Category: PHP › How is it possible to set an infinite execution time for PHP script? 0 Vote Up Vote Down VietMX Staff asked 4 years ago The set_time_limit(0)added at the beginning of a script sets to infinite the time of execution to not have the PHP error ‘maximum execution time exceeded.’ It is also possible to specify this in the php.ini file.