Tutorials, Articles, SEO, CMS, MySQL - Unofficial 110MB Support Center
Article Search:
Navigation
Home
Articles / How-To's
Downloads
110MB Upgrades
Support Forum
Useful links
Search
Site Map
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Things to Do
Forum Threads
Newest Threads
SEO, Using anchor te...
Official PHP Fusion ...
Box 12
any postions open :P ?
How To Save Time By ...
Hottest Threads
Official PHP Fusi... [7]
any postions open... [7]
Box 12 [4]
Do you have what ... [4]
Add these downloads [3]
Users Online
Guests Online: 1
No Members Online

Registered Members: 75
Newest Member: go2
Latest Articles
To protect your images...
How to add your site t...
Nwwl Redirect
Create custom error pa...
SMF 2.0 Beta 3 with SQ...
phpBB3 "Olympus" Relea...
PHP and MySQL security
How to install E107
Wordpress update the e...
Making your own RSS feed
View Thread
 Tutorials, Articles, SEO, CMS, MySQL - Unofficial 110MB Support Center
 Tutorial Support
 Share your 110MB tutorial!
Previous Thread

Author How To Save Time By Making Footers Post 1#1 top



Posts:
Joined: 01.01.70
Posted on 27-04-2008 20:32
Hey, heres a tutorial on how to save time by using footers in your php web pages. if you custom code your site using php you may have a time when you need to update something on all pages or maybe a new year has passed and you need to update all the pages copyright links.

Instead of adding at the bottom of a php doc :

<html>
<head
<title>none</title>
</head>

<body>

<b>Copyright 2003</b>

</body>

</html>

Make a file called footer.php and add the above code. Then just add this to the bottom of all pages instead of ^

include 'footer.php';

Then all pages with that code will include that file.. all you need to do is update then when you need to.

Note: You can use require but if the file is mssing the page won't excute and will return false and a fatal error.
Send Private Message
Jump to Forum:
Copyright © The Unofficial 110MB Support Center 2007
Theme based on Valencia, created by PHP Fusion Themes