Tong-Pak-Fu

A place to relax and discuss.
 
HomePortalFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 PHP: Header/Footer

View previous topic View next topic Go down 
AuthorMessage
BlUeAnGeL
New Otaku
New Otaku
avatar

Number of posts : 85
Registration date : 2007-04-21

PostSubject: PHP: Header/Footer   Sat May 05, 2007 6:04 pm

Ok so lets say you have a bunch of php files and you want your design on all of them but dont want to have all the html code in eatch.. Well its easy...


Make a file called.. header.php

In that put all the HTML above where the content goes on your site..

Then make a file called footer.php

In that file put everything under the content area..

Now, when you want to have a page with your design all you do is make a file.. ex, index.php

And put:

Code:
<? include 'header.php'; ?>
Blahblah your content here >.>
<? include 'footer.php'; ?>

And thats it!
Back to top Go down
View user profile
 
PHP: Header/Footer
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» The header image keeps going invisible.
» Rounded header
» Removing HOME in Footer - phpbb3
» Header: Forumotion links removed
» Click not working on header link for drop down in footer

Permissions in this forum:You cannot reply to topics in this forum
Tong-Pak-Fu :: Graphics And Web Discussion :: Photoshop/Webdesign :: Tutorial :: Web Design Tutorials-
Jump to: