Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

note: There is a similar question but that's about Apache.

The following code

<?php
echo '.';
header('Location: http://stackoverflow.com');

is fully 'working' under nginx 0.7.67 where 'working' means the php redirect is working fine without errors in the error log or displaying the ..

How can i force nginx or php-fpm to throw the PHP Warning: Cannot modify header information - headers already sent by warning?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You should check value of output_buffering parameter in your php.ini file.

php.ini #output-buffering

share|improve this answer
    
Thank you, it's totally my fault. There's a framework on two different servers (Apache/nginx) and i thought there's something with nginx so i didn't checked my php.ini :( Thank you, again! –  fabrik Aug 1 '12 at 12:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.