ob_flush On Nginx Server? RapidLeech help

Status
Not open for further replies.

soogoomoo

Active Member
38
2010
0
0
I am search for the solution for using ob_flush on nginx server.
This is nginx + fastcgi.

I have changed
php.ini: output_buffering = Off
nginx.conf: gzip off;

I also tested with with it:
<?php
set_time_limit(0);
ob_end_clean();
ob_implicit_flush(1);

for($i = 0; $i < 10; $i++)
{
echo $i, "<br />\n";
echo str_repeat(" ",1024*64);
sleep(1);
}
?>

It works fine.

But how to make audl.php working?
Where should i put echo str_repeat(" ",1024*64); in audl.php??


Anyone can help me?
 
9 comments
ob_flush is nothing to do with the web server.

You could run apache, lighty, nginx or litespeed, it makes no difference. The ob_ functions are php related, web server is irrelevant to the problem.
 
No, really, it isn't.

When you run such a script, PHP handles it, it does not care what web server you run, this is irrelevant.
 
If you want to be picky yes, but it does not matter what web server you run.

Flush would not work under mod_gzip because, logically, it is gzipping the content, and to do that it must buffer content to gzip it.

Any sort of web server gzipping would affect this, it is not specific to apache.

Hence, yet again, the web server is irrelevant.

On a side note, he has gzip disabled, clearly.
 
well what i wanted to say is it CAN make difference under different configurations

u cant say [slide]http://screensnapr.com/u/05w39t.png[/slide]
maybe there is a problem in configuration. afterall webserver is the one ouputing it. :p
 
I have made gzip disabled but I don't know how to edit audl.php .
Is there anyone familiar with rapidleech and know how to edit audl.php to show transload bar?
 
well what i wanted to say is it CAN make difference under different configurations

u cant say [slide]http://screensnapr.com/u/05w39t.png[/slide]
maybe there is a problem in configuration

I can because he has gzip off lol. Nothing else i know of buffers output like that.

But anyway his actual problem i dont understand, whats wrong with it if you say the code works? Explain more please.
 
Status
Not open for further replies.
Back
Top