Forum Moderators: phranque

Message Too Old, No Replies

Automatically adding code to header of page

Problem automatically adding banner code to header of page

         

CraigMyers

2:23 am on Jul 2, 2005 (gmt 0)

10+ Year Member



Hello

I am really stuck with a problem and need some help please from anyone :)

I am trying to inject my Google Banner advert onto the top of all pages that apache web server serves.

I have tried using Mod_layout, but mod_layout has a problem when ob_start is called in PHP (which effects PHP Nuke, PHP BB and others)

I have also tried using php_autoprepend but it can mess up headers.

I am using apache 1.33, and PHP v4.0.11.

I have tested the above using apache 2 and PHP 5. without sucsess.

I have seen many hosting companies add there banner across the top of their customers web pages, how do they do that without effecting customers pages and functionality?

Craig

jdMorgan

2:52 am on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Original thread here: [webmasterworld.com...]