The ini_set function is one of the most straightforward ways to increase the value of the max execution time directive. The ini_set method is used to edit the php.ini configuration file’s configuration directives. As a result, we can use it to change the value of the max execution time directive.