Welcome to WebmasterWorld Guest from 54.167.22.37

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache show banner in all pages

     

aitor

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

10+ Year Member



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.

jdMorgan

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

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



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

aitor

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

10+ Year Member



Thanks morgan.

Thanks for your quick response.

I could start looking the way you say.

This is a great site to found responses.

bcc1234

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

WebmasterWorld Senior Member 10+ Year Member



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

aitor

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

10+ Year Member



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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month