13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implementing the Basic Site<br />

575<br />

This code looks very simple because it mostly calls functions from the function API that<br />

you will construct for this application.We look at the details of these functions shortly.<br />

Just looking at this file, you can see that it includes a file (containing the functions) <strong>and</strong><br />

then calls some functions to render an HTML header, display some content, <strong>and</strong> render<br />

an HTML footer.<br />

The output from this script is shown in Figure 27.3.<br />

Figure 27.3<br />

The front page of the <strong>PHP</strong>bookmark system is produced by the<br />

HTML rendering functions in login.php.<br />

The functions for the system are all included in the file bookmark_fns.php, shown in<br />

Listing 27.3.<br />

Listing 27.3 bookmark_fns.php—Include File of Functions for the Bookmark<br />

Application<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!