Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Injecting Code

Injecting Code Problem

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

Junior Member

10+ Year Member

joined:June 19, 2005
votes: 0

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?


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


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 3

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?
4:50 pm on July 8, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member ergophobe is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 25, 2002
votes: 287

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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members