Welcome Guest, Not a member yet? Register   Sign In
Output generated html code before end of script execution
#1

[eluser]jant90[/eluser]
Is it possible to output the so far generated html code with CodeIgniter? When I load a slow script now I don't see anything in my browser until the script is completely done.

For example take the default controller:
Code:
function index()
{
    $this->load->view('welcome_message');
    
    // Code to output all the html generated above
    
    sleep(10);
    echo("script is done loading");
}

How do I make sure my browser already gets to see the welcome message before the 10 second sleep kicks in?

Is it even possible?


Messages In This Thread
Output generated html code before end of script execution - by El Forum - 11-25-2010, 03:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB