Re: Maximum Execution Time and pereg_replace
| From: | Kdtc | Date: | Wed, 18 Oct 2000 08:54:35 +0000 |
| Subject: | Re: Maximum Execution Time and pereg_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20846@lists.php.net to get a copy of this message | ||
Brent Charbonneau wrote:
> Hey,
>
> A nasty bug has been bothering me for a while now, and I haven't exactly
> been able to figure it out. I've written a rather complex news/webloging
> script that uses it's on 'style' templates. I process various tags within
> the templates to insert the news article specific info.
>
> Anways, I use preg_replace to do some of the tag/value swaping, and I think
> it may be the cause of a maximum execution time error (which I believe
> translated to a 100% CPU & PHP process hang in windows). Here is some
> example code (quite cut down for simplicity):
*snip*
> Can anyone lend any help?
While I don't think this will help, I'll give it a shot. In phpinfo(),
what's your Maximum Execution Time? You can increase
the time needed to execute whatever process you're trying
to accomplish. Of course, this doesn't really solve your
processing problem. It'll possibly delay the error from
happening again. But being a PHP amateur, I could
be wrong.
Ed