Web Hosting Talk







View Full Version : Request - How to make a banner ad appear on free hosted websites?


WebTrooper
02-08-2005, 10:35 PM
I'm sure a lot of folks would like to know how to do this, for a variety of uses. What I need to do is have a banner ad appear at the top or bottom of every page published on free hosting accounts. Not a template based system, nothing like that. Except for the superimposed banner, they will have a regular cPanel account - php, mysql, email, ftp and all that stuff. The only difference would be the banner attached to their pages.

The machine: RedHat SE, Apache 1.3

Anybody? :)

snJohn
05-15-2005, 10:16 AM
I would be interested in knowing how to do this also...

aht
05-21-2005, 10:42 PM
That would be neat. I would assume it would have to be a mod in cPanel or Apache.

gopper
05-22-2005, 07:28 PM
I beleave it can be done in .htaccess where you can add html to pages before the </body> tag ...

I no longer have the codein for this... But whould like to hear about alternitives

Bashar
05-22-2005, 07:29 PM
mod_layout would so it for you too, seach WTH or google for it :)

Raptors
06-03-2005, 08:54 PM
You can install mod_layout:
http://tangent.org/

or use auto_prepend_file and auto_append_file:

php_value auto_prepend_file /home/username/public_html/header.html

AddType application/x-httpd-php htm

AddType application/x-httpd-php html

copy and paste to your .htaccess