webspace hosting reseller hosting|             | blog| forum| dating| free hosting| openhost| report abuse
Internet Fax To Email - Unlimited

Unlimited Faxes, No Fees, Dedicated Phone Number

Free Website Templates

 

 

Introduction to PHP
PHP Installation
PHP Syntax
PHP Operators
PHP Conditional Statements
PHP Looping
PHP Functions
PHP More Functions
PHP Forms
PHP Cookies
PHP Include Files(SSL)
PHP The Date
PHP Database ODBC
Tutorials for PHP

PHP Include Files(SSL)

Server Side Includes (SSI) are used to create functions, headers, footers, or elements that will be reused on multiple pages.


Server Side Includes

You can insert the content of one file into another file before the server executes it, with the require() function. The require() function is used to create functions, headers, footers, or elements that will be reused on multiple pages.

This can save the developer a considerable amount of time. If all of the pages on your site have a similar header, you can include a single file containing the header into your pages. When the header needs updating, you only update the one page, which is included in all of the pages that use the header.

Example

The following example includes a header that should be used on all pages:

<html>
<body>
<?php require("header.htm"); ?>
<p>
Some text
</p>
<p>
Some text
</p>
</body>
</html>