Topic: header modification warning in extern.php (ver 1.3.2)

the following code will produce this header warning
Warning: Cannot modify header information - headers already sent by (output started at xxxx/bug.php:4) xxx/forum/extern.php on line 249

<html>
<body>
<ul>
   <?php
    define('FORUM_ROOT', './../forum/');//your own forum_root here!!!!
    $_GET['type']='html';
    require FORUM_ROOT.'extern.php';            
?>
</ul>
</body>
</html>

probably the same bug exist in 1.3.4 as it still sends headers in function output_html($feed)

2 (edited by Slavok 2009-11-09 07:08)

Re: header modification warning in extern.php (ver 1.3.2)

This should work without such error:

<?php ob_start(); ?>
<html>
<body>
<ul>
   <?php

    define('FORUM_ROOT', './');//your own forum_root here!!!!
    $_GET['type']='html';
    require FORUM_ROOT.'extern.php';

?>
</ul>
</body>
</html>
<?php ob_end_flush(); ?>