Re: Automated Script
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Automated Script

From: Adam <anon@nowhere.com>
Date: Tue Oct 04 2005 - 12:40:59 CEST

On Tue, 4 Oct 2005 07:50:59 +0000 (UTC), Andrew @ Rockface wrote:

>chotiwallah wrote:

>You could use an infinite loop and stick the code to be executed inside
>with a sleep at the end.
>
>$x = 5;
>while(1) {
> echo "Hello world";
> sleep($x);
>}

I've been digging around looking for info on precisely this topic.

Not sure whether your code will work (infinitely). It will simply hit
the maximum page execution time set by php.ini on the server - then
throw an ugly error.

You could extend that time with ini_set() - but I'm not sure whether
there's a memory or performance hit on a server processing an infinite
loop. It would also dependon what is actually happeniong iside the
loop.

Adam.
Received on Tue Oct 18 02:31:30 2005