View Single Post

Old 10-10-2006, 16:35   #7 (permalink)
monaghan
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,041
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Make the <?php the very first line in the file, otherwise the blank lines will be output prior to the php being executed. Once some content has been sent, then you are no longer able to send a header value.

Alternatively you can look at output buffering in the PHP manual if you want to send headers in your code after the content.
monaghan is offline   Reply With Quote