0

sory guys my English not very good. i try to explain my self. i got Linux mint 16 and PHP version 5.5.8. on APACHE server. i'm do some practice and i know that i cant send headers after output. and the problem is that is sending headers and not throwing errors.

I know exactly what this code should not work, but it is working

echo "hello";
var_dump('hello');
header('Location: lerning2.php');

I think that this is a problem in the server configuration. Who knows what the problem might be?

Victorino
  • 1,623
  • 11
  • 22

1 Answers1

0

As Wrikken noted in the comment, you might have enabled output buffering. Try stopping output buffering and then send the header.

echo "hello";
var_dump('hello');
ob_end_flush();
header('Location: lerning2.php');
Rocky
  • 327
  • 1
  • 9