Insert generic code on every page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 3, 2010   (RSS)

Re: [Toledoh] Inser generic code on every page

By Chris - March 3, 2010

Hi Tim,

That warning is caused by any character (even a space or a newline) being output before viewer_functions are included.

Try changing this:

<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
...


to this:

<?php
header('Content-type: text/html; charset=utf-8');
...


I hope this helps! Please let me know if you have any questions.
All the best,
Chris

Re: [chris] Inser generic code on every page

By Toledoh - March 3, 2010

Excellent! Thanks for that.
Cheers,

Tim (toledoh.com.au)