Forum Moderators: coopster

Message Too Old, No Replies

Injecting Code

Injecting Code Problem

         

CraigMyers

6:57 pm on Jul 1, 2005 (gmt 0)

10+ Year Member



Hello group,

I have a challenge and hope that one of the more experienced and technical members of webmaster world would be able to help with a problem?

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

coopster

11:17 pm on Jul 7, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would guess maybe an iframe or perhaps even javascript. Have you tried viewing the source code of one of the pages you are seeing it happen in?

ergophobe

4:50 pm on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I thought mod_layout would be the solution. What is the conflict with output buffering? I wonder if it might be okay in Apache2 or something.