Jump to content

Auto increment a number for every 10 seconds


lilywong

Recommended Posts

  • 6 months later...
[quote author=Daniel0 link=topic=87013.msg436362#msg436362 date=1158558789]
[code]<?php
$num = 0;
while(1==1)
{
sleep(10);
$num++;
}
?>[/code]

Will increase by 1 every ten seconds.
[/quote]

Unfortunately, though, you will never see the number as the script will just hang until it eventually times out

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.