Display Script ProgressDescription
Get the browser to display what is happening in your script. TutorialBy using the flush(); command you can get your browser to show how far into the script it has gone:
<?
$count = 0;
while ($count <= 50 ) {
echo "$count <br />";
ob_flush();
flush();
usleep(75000);
$count++;
}
?>
You could use this when doing script installs or large mail outs.
You can see this example in action here - http://www.rampantstudios.com/count.php
|