Teun Zengerink Teun Zengerink - 9 months ago 71
PHP Question

Get max_execution_time in PHP script

I know it is possible to set the maximum execution time in a script using either:

ini_set('max_execution_time', 30);



What can I do to get a variable containing the maximum execution time in seconds?

Jon Jon
Answer Source

The converse, using ini_get:


Note: if you check the documentation page for ini_set, you can find ini_get listed prominently on the "See Also" section. That's a very good way to discover functionality built into PHP that you are not already aware of.