June 2005
Intermediate
720 pages
20h 6m
English
The home page for the site, called index.php, will be a model for the other pages on the public side. It will require the configuration file (for error management) and the header and footer files to create the HTML design. This page will also welcome the user by name, assuming the user is logged in.
1. | Create a new document in your text editor (Script 13.5).
<?php # Script 13.5 - index.php Script 13.5. The script for the site’s home page, which will greet a logged in user by name.
|
2. | Include the configuration file, set the page title, and include the HTML header.
require_once ('./includes/config. ... |
Read now
Unlock full access