nginx and php header + flush

ykse nginx-forum at
Fri Sep 2 11:50:32 UTC 2011

Hello guys,
I've got strange problem with my webserver. I've got nginx and apache
with php as backend www server, and now when I tryin to run this code


    header('HTTP/1.x 404 Not Found');
    echo "sometext";

( it's on apache )

nginx returns something like this ->

8 sometext 0

As you can see it's returns some numbers, but why ? When I'm openning
same script directly from apache it's returns only "sometext" without
any numbers.

Do you have any idea why nginx returns this numbers ?

Posted at Nginx Forum:,214654,214654#msg-214654

More information about the nginx mailing list