Hi All,
I am upgrading a CMS I wrote a long time ago. part of the upgrade is an overall include page which store basic stuff like contact details, paths, scriptnames.
I have run into the problem that I get a 'Cannot modify headers, headers already sent. Output started by include_inc.php:1 in page.php line X' error message, when trying to redirect people after processing, using header(location🙂.
I assume that the include_inc.php:1 means that it should be on line 1 of my include that the output started?
Odd thing is.. I cannot find any output: The include starts of with <?php, then a whole bunch of variable & constant declarations, then ?> and no whitespace before or after.
Also, if I add echo "--"; at the top and end of the include file, nothing shows up in between.
Anybody know a way to get a better idea where the output may have started?
J