PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY A (Managed web hosting)

PHP SOLUTIONS: DYNAMIC WEB DESIGN MADE EASY

A journey through Japan with PHP

Ut enim ad minim veniam, quis nostrud . . .

Water basin at Ryoanji .   temple

Eu fugiat nulla pariatur. Ut labore et dolore . . .

Consectetur adipisicing elit, duis aute irure . . .

Quis nostrud exercitation eu fugiat nulla . . .

PHP Solution 4-1: Moving the navigation menu and footer to include files 1. Copy index01.php from the download files for this chapter to the phpsolutions site root, and rename it index.php. If you are using a program like Dreamweaver that offers to update the page links, don t update them. The relative links in the download file are correct. Check that the CSS and images are displaying properly by loading index.php into a browser. It should look the same as Figure 4-1. 2. Copy journal.php, gallery.php, and contact.php from the download files to your site root folder. These pages won t display correctly in a browser yet because the necessary include files still haven t been created. That ll soon change. 3. In index.php, highlight the nav unordered list as shown in bold in the previous listing, and cut (Ctrl+X/Cmd+X) it to your computer clipboard. 4. Create a new file called menu.inc.php in the includes folder. Remove any code inserted by your editing program; the file must be completely blank. 5. Paste (Ctrl+V/Cmd+V) the code from your clipboard into menu.inc.php and save the file. The contents of menu.inc.php should look like this:

Don t worry that your new file doesn t have a DOCTYPE declaration or any , , or tags. The other pages that include the contents of this file will supply those elements.
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply