Posts Tagged ‘PHP’

PHP Cannot modify header information

Problem:
Warning: Cannot modify header information – headers already sent by (output started at blah blah blah) in blahblahblah.php on line 90
Cause:
PHP script has output before calling header().
2 ways to get rid of this:

In php.ini, Set output_buffering to On. If no access to php.ini because of using shared hosting, add “PHP_FLAG output_buffering on” into .htaccess file.
Code [...]