Creating the Public Template

Before I get into the heart of the public side, I’ll need to create the requisite HTML header and footer files. I’ll whip through these quickly, since the techniques involved should be familiar territory by this point in the book.

To make header.html

1.
Create a new PHP document in your text editor (Script 14.3).
<?php # Script 14.3 - header.html
Script 14.3. The header file creates the initial HTML and begins the PHP session.

2.
Begin the session.
session_start();
?>
It’s very important that the user’s session ...

Get PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.