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


By: Stephen

Share on Facebook: On Twitter: TwitterTweet this!

  Reply to How To Create A Template For Your Site

  Receive Our Newsletter




Questions about learn PHP:

Ask question

More Articles:
Super affiliate generator
How to save money online
How to export to Excel with PHP