Re: Infinite loops with PHP
| From: | hennink at patrijs dot max dot nl | Date: | Thu, 26 Oct 2000 19:57:10 +0000 |
| Subject: | Re: Infinite loops with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22197@lists.php.net to get a copy of this message | ||
Hi,
check in the php.ini file the following sector:
Resource Limits
You can limit the time that one script can run and the maximum amount of
memory that is avaible for that script,
Tijmen
On Thu, 26 Oct 2000, Sam Jordan wrote:
> Hi all
>
> I'm working for an ISP which wants to give the user the
> possibility to write PHP scripts. Now I'm worried about
> the situation, where a user writes a script which lets
> the interpreter run in an infinite loop, which would
> degrade server performance until the server is restarted.
>
> Is there some timeout value, which automatically lets
> the PHP interpreter stop after some time? Is it configurable?
> If there is no timeout feature, how can this problem be solved?
>
> Please reply to the email address
>
> Thanks for your time
>
> bye
>
--
Customer: I'm running Windows '98
Tech: Yes.
Customer: My computer isn't working now.
Tech: Yes, you said that.