Posted by Peter Fox on 12/29/05 13:28
Following on from comp.lang.php's message. . .
>[PHP]
><?php if (headers_sent()) print_r('headers sent');
>
> // do other stuff
>?>
>[/PHP]
1.
Try (complete file - no extras)
<?php
if (headers_sent()) print('headers sent<br>');
print('[');
include(...);
print(']');
?>
Now there /should/ be nothing between '[' and ']'. (Look at source,
possibly in hex editor) And of course no headers sent message.
2.
Cookies? Messing with cookies will send headers. See the manual.
--
PETER FOX Not the same since the deckchair business folded
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
[Back to original message]
|