O'Reilly logo

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required