Ordinary Timer Indicator
| From: | Pushpinder Singh Garcha | Date: | Thu, 01 May 2003 18:35:26 +0000 |
| Subject: | Ordinary Timer Indicator | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145988@lists.php.net to get a copy of this message | ||
Hello all,
I am trying to make a small timer status indicator. the code looks up a file to see if the entry is correct. In order to show the user that some processing is being, I want to show a small timer as described below:
Checking Passport Code . (wait 1 sec and display '.') . (wait 1 sec and display '.') .. and so on.
This is the code that I came up with and something does not seem to be working fine. All it does is to wait for some time and display the entire line. I want it to display the text and a '.' and wait for 1 sec and display another '.' and so on.
<?
echo "Checking passport code";
for ($i =0; $i < 4; $i++)
{
echo " . ";
sleep(1);
}
?>