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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.