


|
Your site will need to support PHP.
First, we need to create a "header" page. To do this, create a new page (using notepad, dreamweaver...) and save it as "header.php". Right click the code in the textarea below, select all, copy and paste to the page.
See Screenshot 3
Finally make your "index.php" page. This would be the first page. So you could use the page as the enter/splash page or go straight into your site. As we're using PHP includes, this would make editing your pages much easier, especially when changing your layout as you just have to edit your CSS page and "header.php" page. So, on your "index.php" page, add the code below:
Hey welcome. Your introduction here. Blah blah. Add anything that you want your visitors to see first here. This is optional.
Welcome to SITE NAME HERE
Updates
Your updates here. Or your blog here. Optional.
<? include("/home/USER/public_html/footer.php"); ?>
See Screenshot 4
We're nearly there!
Now this is the hard long part. It's not hard, just very time consuming... if you have a site with lots of pages. You must rename all your pages to PHP if you haven't already. If you saved your pages, for example, leftmenu.htm, rename it to leftmenu.php. Also, you must add the PHP includes in all pages aswell! So add the codes below:
<? include("/home/USER/public_html/header.php"); ?> - Add this on the first line of all pages.
<? include("/home/USER/public_html/footer.php"); ?> - Add this on the last line of all pages. (optional)
You're done! If you have further questions, feel free to ask me via contact form, ask me page or email me. Please link me back. Thank you.
|
|
|
|
|
| |
|
|
|
![]() |
Copyright © to Jijy - sugaryparadise.net 06-08. All rights reserved.