Forum Moderators: coopster

Message Too Old, No Replies

How to catch or fix a text filter

Fatal error: Maximum execution time

         

HeadBut

3:12 am on Apr 1, 2005 (gmt 0)

10+ Year Member



I keep getting this error:
Fatal error: Maximum execution time of 30 seconds exceeded in /Library/WebServer/Documents/XXXXXX#*$!xx/FindTextFilter3.php on line 6

Line 6 is a "eregi_replace()" with large array and large text string

How can I extend the execution time or trap for this error?

Thanks

dcrombie

9:22 am on Apr 1, 2005 (gmt 0)



You might try using preg_replace [php.net] or str_replace [php.net] which are both significanly faster than the ereg functions.

coopster

1:13 pm on Apr 1, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Also, if you have long-running jobs you'll want to review the PHP set_time_limit() [php.net] page. Start there and read about the other directives that you can alter for long-running scripts -- assuming you really want them to continue running.