Re: header modify errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Terion Miller wrote:
*Warning*: Cannot modify header information - headers already sent by
(output started at
C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\Welcome.php:31)
in *C:\Inetpub\Xampp\htdocs\SNLeader\WOSystem\inc\dbconn_openTest.php* on
line *3*

Line 32-36 are:
<?php
    If (!empty($msg)){
        echo "<div class=\"Error\">". $msg ."</div><BR><BR>";
    }
?>


stick an ob_start(); at the beginning of the file and php will not complain about output started any longer.

-jsd-


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux