Tong-Pak-Fu
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tong-Pak-Fu

A place to relax and discuss.
 
HomePortalSearchLatest imagesRegisterLog in

 

 PHP: Header/Footer

Go down 
AuthorMessage
BlUeAnGeL
New Otaku
New Otaku
BlUeAnGeL


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

PHP: Header/Footer Empty
PostSubject: PHP: Header/Footer   PHP: Header/Footer Icon_minitimeSat 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
 
PHP: Header/Footer
Back to top 
Page 1 of 1

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: