Location: PHPKode > scripts > Simple template usage > index.php
<?php
/* ########################## INFO ##########################

                     Simple template usage
                          Version 1.0

         Free script from WB - Webdesign for beginners.
          Visit http://plohni.com/wb for more scripts.
               Feel free to modify this script.
                              lgp

/* ########################## INFO ########################## */
/* ###################### INSTALLATION ###################### */

   // a) Adjust the configuration variables to your needs

         $header = "header.php"; // Name of the header file
         $footer = "footer.php"; // Name of the footer file
         $error = "error404.php"; // Name of the error file
         $homepage = "Home"; // Page to be loaded when no
                             // page is specified

   // b) Edit content in files header, footer, error,
   //    Archive.php, Contact.php and Home.php and/or
   //    delete, edit and create files.
   // c) Copy PHP files to your server using ASCII mode
   // d) Open page by calling index.php

/* ###################### INSTALLATION ###################### */
/* ############# SCRIPT (EDIT AT YOUR OWN RISK) ############# */

  //include header
  include($header);

  //check if parameter is given
  if(!isset($_GET["load"])){
    $_GET["load"] = $homepage;
  }

  //check if file exists
  if(file_exists($_GET["load"].".php")){
    //include file
    include($_GET["load"].".php");
  }else{
    //include error
    include($error);
  }

  //include footer
  include($footer);
?>
Return current item: Simple template usage