PC Header and Footer Documentation

PC Header and Footer Documentation *

Description *

Features *

Installation *

Configuration *

Uploading *

Running *

Description

This script will allow you to insert a header and footer to your page with content specified in a single location on your server.

Features

Installation

Configuration

You will need to insert the HTML you would like used into both the header.html and footer.html files before the script will have any data to insert.

Uploading

    1. Create a directory for the script on your server, which must have CGI access.
    2. Upload all files in ASCII mode.
    3. CHMOD .CGI files to 755.
    4. CHMOD all other files to 644.

Running

To call this script to produce a header, use the following code.

<!--#include virtual="/cgi-bin/headfoot.cgi?action=header" -->

You can optionally add a title for each page by simply adding

this tag: %title% to your header file where you wish the title

to be and calling the script as follows:

<!--#include virtual="/cgi-bin/headfoot.cgi?action=header&title=My%20Website" -->

Make sure you change any spaces to %20, as a raw space will not work with the script.

To call this script to produce a footer, use the following code.

<!--#include virtual="/cgi-bin/headfoot.cgi?action=footer" -->

If the above does not work then you probably do not have SSI enabled for

your domain, or your server recognises a different type of call for this.

To trouble-shoot you can try calling the script with:

<!--#exec cgi="/cgi-bin/headfoot.cgi?action=footer" -->

If this still doesn’t work, then you definitely do not have SSI enabled, please talk to your

server admin about enabling it for you.

 

 


Proud suppliers of perl cgi and php applications created from the webmasters point of view. PerlCoders supplies top quality CGI scripts at membership warehouse prices every day. This is the only webmaster resource you need to build traffic and add interactive content to any website.

Need custom programming or website development? We do it all. Just use our contact form and let us know what you need.

Perlcoders.com - Copyright © 2003 by PerlCoders Group
Privacy policy       Licensing policy       Site Usage Terms
Not a member yet?
Click Here
User:
Pass:
I forgot my password
  HomePage
Current News
Our Products
Our Services
FAQ & Docs
Support
Contact
Make Money!
Affiliate Login
 
Right now get access at a special rate of only $160 which includes more than 156 of our top quality CGI scripts and get deep discounts on many others. You also get full access to our members area which is slam packed with webmaster goodies.

  · Read more...


 
Get the latest News at
the Perlcoders group.

 
What our clients say
Tell us what you think
Projects in the works
Free scripts to members
Free self help ebooks
Free Tip of the Day
Free Support
Custom programming
Cellulean
SEO Resources
Google Forum
Image Hosting
SEO Forum
Myth of Caesar
Click here to join ArticleDistribution
Click to join Article Distribution