...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How To Create A Template For Your Site

Computing : Learning PHP

If you currently have lots of static HTML pages, and are just learning PHP, then one command will be very useful to you.

Isn't it annoying how on a twenty page site, if you want to update your navigation, you need to make the update twenty times?

Well, not with PHP. Simply place the fixed elements of all pages in a separate file and call it something like navigation.html. Then, in each PHP file that will include the file, simply write:
include ("navigation.html");

... as easy as that!


Profile image!
By: Stephen

  Reply to How To Create A Template For Your Site

  Receive Our Newsletter

learn PHP picture



Questions about learn PHP:

Ask question

More Articles:
Introduction
How to ensure people read your e-newsletter
What you should measure on your website