Pages

Bài đăng phổ biến

Showing posts with label Warning: Cannot modify header information - headers already sent by. Show all posts
Showing posts with label Warning: Cannot modify header information - headers already sent by. Show all posts

Thursday, November 17, 2011

[Resolved] Warning: Cannot modify header information - headers already sent by

When you see this error, you just put this tiny code to begin your code:
Go Daddy $7.49 .com Sale!

 ob_start()           turn on  buffer
 ob_end_flush()   turn off buffer and print all to browser


Example:

<?php

ob_start(); 

echo "Check phat";
header("Location: redirect.php");
ob_end_flush(); 
?>
Nguyen Si Nhan