The Wayback Machine - https://web.archive.org/all/20050204130605/http://www.freescripts.com:80/header-footer.php

Cheap Web Hosting
Unix Web Hosting
Windows Web Hosting
Reseller Web Hosting
Ecommerce Web Hosting
Web Hosting Service
 
Free Scripts
 
Banner Ads
Chat
Form Processor
GuestBook
MailFile
PostCard
 
Free Snippets
 
Cookies
Header/Footer
Random Text
Text Counter
 
Scripts Directory
 
ASP
ASP.NET
Java
Javascript
Perl
PHP
Python
XML
 
Misc.
 
Web Hosting
Website Promotion
Mall
Traffic-UK.com
Barcelona Property
Web Hosting
Hosting Directory
ASP & PHP Tutorials
Buy UK Traffic
PHP Classes
Meta Language
Blog Rankings
Web Hosting
Cheap Web Hosting
Web Design
Windows XP
Cheap Web Hosting
Add Listing
Contact Us
 
  Jumpline Hosting
With the ability to host 6 domains on one account, you can?t beat this low price. More Information.
 
Netfirms Web Hosting
Trusted by over 1,000,000 people and growing
 
Interland
Sell and Market Your Products Online
 
Dot5 Hosting
Award Winning Web Hosting JUST $5p/m





Description

This script is created for you to be able to include 1 file in another file. The most common use for this script is to serve as a Header/Footer. This will include an entire file with just 1 simple command. NOTE: if you are trying to include a file in HTML you must have SSI enabled on your server. Most servers today have php installed for free so if you need this functionality, consider switching to another language.

Include in PHP

Just include the following code where you want to include a file in a .php file.
<? include "file.html" ?>

Include in ASP

Just include the following code where you want to include a file in a .asp file.
<!-- #include file="file.html" -->

Include in CGI

To include a file in a .cgi or .pl page, use the following code.
#!/usr/local/bin/perl

$footer_file = "/path/to/footer.txt";

print "Content-type: text/html\n\n"; open(FILE,"$footer_file"); while() { print $_; } exit;

Copyright © 1996 - 2003 JumpBug Enterprises
Read our Privacy Statement
Read our License Agreement