Jump to content

Sleep() Stopping echo


Rustywolf

Recommended Posts

I found another topic about this but the solution was using the meta tag instead of sleep and header to reidrect

 

my code is

<?php

function slowecho($input)
{
	$input_letters = str_split($input);
	for($i = 0; $i <= count($input_letters); $i++)
	{
		echo $input_letters[$i]; //Wont echo. till its gone through loop every time.
		sleep(1);
	}
}

if($_GET['str'])
{
	slowecho($_GET['str']);
}
?>

 

Any help?

Link to comment
https://forums.phpfreaks.com/topic/195092-sleep-stopping-echo/
Share on other sites

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.