Cannot modify header information - headers already sent by ...

From: Date: Mon, 21 Apr 2008 15:33:35 +0000
Subject: Cannot modify header information - headers already sent by ...
Groups: php.general 
Request: Send a blank email to php-general+get-273354@lists.php.net to get a copy of this message
I fixed this last time by looking for white space both before and after the opening and closing php tags, as a Google search had revealed. But this time, I've spent an hour running down various files and not seeing what the heck is wrong. Here's the essential setup. main.php <? require_once 'shared_style.php'; require_once 'something.php' ?> shared_style.php <style> a.friend_selector_tabs:hover { background: #E4E4F8 none repeat scroll 0%; } .title_msg { font-size: 14px; color: #444444; font-weight:bold; } </style> The something.php has a setcookie call on the line number that PHP is complaining about for headers. What am I doing wrong that's causing even mire headers to be generated? I tried moving the require_once 'something.php' above, but no luck there either. Thanks for any help, Waynn

« previous php.general (#273354) next »