php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to PHP programming

Search

how to use include function in php how to use include function in php

how to use include function in php

by uclaboyz on Sun 02/12/2006 08:49 PM

It is easy to include another file in your PHP file. 

The function is include ''; 

Here is how you use it.  For example, you have developed a website template, and you break down the HTML file into header, content, and footer, and you have header.htm, content.htm and footer.htm, respectively. 

Say you file is index.php, you would simple include your template files like this: 

<?
include 'header.htm';
include 'content.htm';
include 'footer.htm';
?>

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites