Trouble outputting text in CodeIgniter 2.x? |
How can I output text in real-time using CodeIgniter 2.x? I have tried using ob_end_flush() and flush() functions along with increasing the number of bytes, but the output is still not displayed until the script is finished. I have also tried the following code:
scss function test() { ob_end_flush(); echo "test1"; ob_start(); sleep(3); ob_end_flush(); echo "test1"; ob_start(); sleep(3); ob_end_flush(); echo "test1"; ob_start(); } But the output is not displayed until after 6 seconds. How can I make the script output the text in real-time, waiting for 3 seconds after each echo statement? Any help would be appreciated. |
Welcome Guest, Not a member yet? Register Sign In |