Re: header modify errors
| From: | Jon Drukman | Date: | Mon, 15 Dec 2008 19:47:24 +0000 |
| Subject: | Re: header modify errors | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284641@lists.php.net to get a copy of this message | ||
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-