Search code examples
phptimeexecutionmax

Php trapping maximum execution time error


Is there a way in PHP to trap the fatal error when the max execution time is reached and give the user a better message?


Solution

  • Try setting a "Done" flag after the execution of a file and registering a shutdown function that will check if that flag is defined