ob_start();
error_reporting(E_ALL); $i=0;
echo "<body bgproperties='fixed' background='pics/anemos.bmp'>";
$stream = fopen("e:\\web\\data.txt", "r");
while(($x=fgetc($string))!=EOF)
{
echo "<font face='Com' size='7' color='Yellow'>" .$x;
header("Refresh: 2; URL=http://localhost/test.php");
}
ob_end_flush();
?>
I wanted after each letter thet would be readen from the file to refresh ti after 2 secs and the display the next so it would be lik1
h refresh
he refresh
hel refresh
hell refresh
hello refresh
Can it be done and how? I also i think that i have to save the fgetc position after each refresh so that it would not start from the beggining!
right?