? about page loading

A

Anonymous

Guest
A common problem I find when adding headers is if there is a whitespace before the starting PHP tag.
For example:
Code:
<?php

header('Location: http://www.php.net/');
?>
This whitespace is counts as an output and is sent to the browser, thus generating the header error message.
 
Back
Top