homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Apache show banner in all pages

 12:32 am on Sep 14, 2003 (gmt 0)

I am thinking in adding a new server for free host of special proyect pages.

I force users to add a script for banner showing in the page but it is bad because they need to insert in the page.

I have shown that lot of free hosting services include automatically the banner.

How can i make in the new server to send a top banner in each html , php page that is shown in the server. i suppose to make loading also a frameset page, but how to make that it didnīt load a frame withing a frame page?

Hope that anyone could help me and sorry for my english.



 4:28 am on Sep 14, 2003 (gmt 0)


Welcome to WebmasterWorld [webmasterworld.com]!,

This sounds like a question for the scripting forums.

An outline for processing .html documents would be:

Direct all document requests to the script.
Have the script verify that the requested document exists.
Write an HTTP response header to stdout.
Have the script read records from the requested document, and write them to stdout until the beginning of the <body> section is found.
Insert the banner code from a local file, writing it to stdout.
Continue reading records from the requested document and writing them to stdout until end-of-file is found.

This would not require any code to be inserted by users - it would be done on the server.

You could ask in the php or PERL scripting forums, too.



 8:57 am on Sep 14, 2003 (gmt 0)

Thanks morgan.

Thanks for your quick response.

I could start looking the way you say.

This is a great site to found responses.


 9:24 am on Sep 14, 2003 (gmt 0)

I think there is a mod for apache that does it.


 9:54 am on Sep 14, 2003 (gmt 0)

yes bcc1234 you are right

i found it here

This is getting more easy now. I can try it.

[edited by: DaveAtIFG at 12:10 pm (utc) on Sep. 14, 2003]
[edit reason] Corrected link [/edit]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved