>> KYSCORP.COM TUTORIALS >> PHP Tutorials

PHP Include

Many scripts use this function to include a page inside another. For instance, you may have a "functions.php" file that contains a list of functions you prepared for your personal use and that you may need for more than just a page.
Instead of pasting the code on each page, just write on every page :

<?
$file="functions.php"; //Here's the file you wish to include.
include($file);
?>

That's just an example but this function is actually widely used.