logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Including specific code on every page

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
zeeman48



Joined: 29 Jan 2006
Posts: 1

PostPosted: Sun 29 Jan '06 5:10    Post subject: Including specific code on every page Reply with quote

Ok, I have a web site and I let some friends host their sites on mine. However, hosting costs money and I would like to make money off it. I would like to display an advertisment to one of my affilates.
How can I set up my site to display some prebuilt PHP code on the top of my site, but, only on the pages of my friends?
I am also wondering if there is a way to redirect all image-only pages (you know, when someone links to a URL like "http://site.com/friends/name/image.gif" to circumvent ads) to a page that looks identical to how it would look if you were at that page any where else, except, there is a text ad at the bottom.
Any help would be apreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Wed 01 Feb '06 10:54    Post subject: Reply with quote

If they use PHP you can set a specific page include with auto_prepend_file or auto_append_file.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1