Welcome Guest, Not a member yet? Register   Sign In
Flushing the output buffer? Possible?
#1

[eluser]JulijanAndjelic[/eluser]
I did some research on this but can't seem to find a solution to flush the output buffer. ob_flush() doesn't work...reading about the CI's Output class I've found that CI doesn't use the native php output buffer, which I'm not sure why.
The situation is, I make an AJAX request to my controller, controller loads my custom library which uses curl to download a remote file, curl triggers a callback function to report the download progress and after every execution of the callback function it should flush the output back to the client side...normally I'd use native output buffering functions but they don't seem to work under CI.

It would be cool if there was a "flush" method in the Output class. Maybe using another approach?

Thanks in advance.




Theme © iAndrew 2016 - Forum software by © MyBB