Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache show banner in all pages

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

New User

10+ Year Member

joined:Sept 14, 2003
posts:4
votes: 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 Sept 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 0


aitor,

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.

Jim

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

New User

10+ Year Member

joined:Sept 14, 2003
posts:4
votes: 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 Sept 14, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 1, 2002
posts:1421
votes: 0


I think there is a mod for apache that does it.
9:54 am on Sept 14, 2003 (gmt 0)

New User

10+ Year Member

joined:Sept 14, 2003
posts:4
votes: 0


yes bcc1234 you are right

i found it here
[software.tangent.org...]

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]

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members