I know a lot of people these days who don't know a lot about html/php etc use templates which they have either been given for free or paid for.
A lot of these are bog standard, and don't usually include any php!!
PHP Include
With the PHP include file, you can save time editing your templates by using a text file with (for example) your news, your menu bar etc.
Example: Menu Bar
menu.inc
When you add this to menu.inc:
You will automatically have "About" and its hyperlink added to your menubar. You can create menu.inc by simply renaming a .txt file.
Add the <?php> tag above into all your templates where your menu bar is, and when you add a new page to the site, simply update menu.inc with the new link :]
You can see examples of this at my site: http://projectfreedom.frih.net
I use the include to update the "latest news" column, my menu bar and my networked sites page :]
EDIT - I forgot to add, anyone who views your source will not see the php tag, they will see what is actually inside menu.inc on the source! Secure!
I'm not sure, but you can also make files hidden aswell. :]
A lot of these are bog standard, and don't usually include any php!!
PHP Include
With the PHP include file, you can save time editing your templates by using a text file with (for example) your news, your menu bar etc.
Example: Menu Bar
| Code: |
| <?php include("menu.inc"); ?> |
menu.inc
| Code: |
| <li><a href='#'>Home</a> |
When you add this to menu.inc:
| Code: |
| <li><a href='#'>About</a> |
You will automatically have "About" and its hyperlink added to your menubar. You can create menu.inc by simply renaming a .txt file.
Add the <?php> tag above into all your templates where your menu bar is, and when you add a new page to the site, simply update menu.inc with the new link :]
You can see examples of this at my site: http://projectfreedom.frih.net
I use the include to update the "latest news" column, my menu bar and my networked sites page :]
EDIT - I forgot to add, anyone who views your source will not see the php tag, they will see what is actually inside menu.inc on the source! Secure!
I'm not sure, but you can also make files hidden aswell. :]
