Skip to Content

PHP

Tips & Tricks

Problem : PHP Warning: Cannot modify header information - headers already sent by

Solution:
//ob_start() . Its turning on the output buffer. So any output is kept in the buffer. And ob_flush() is to flush the buffer

try placing this at the top of your page:
<? ob_start(); ?>

then at the bottom of the page place this line of code:
<? ob_flush(); ?>
 

 




Syndicate content