well what i would do is first design my sites layout in html and save it as index.php.
then i would use php to change just the part that chnages when you click a link. for example the layout wont change just the info inside it. The advantages of this is that you only have to have one page to worry about layout with.
now to change the page in the index.php where you want the page to be changed in the html put
Code:
<? //open php tag telling that it is a php script
if(isset($HTTP_GET_VARS['page'])){ // seeing if a varible is set in the URL
$urlpage = $HTTP_GET_VARS['page'];
// now going to find the right page
if($urlpage == "link1"){
include("pages/link1.htm");
}
if($urlpage == "link2"){
include("pages/link2.htm");
}
}else{
// if the varible isnt set load this page
include("pages/index.htm");
}
?>
as you can see it is a simple script and if you plan on having lots of pages then i wouldnt recommend it.
i use a script like this on my page to give you an idea what i am on about
this page
http://coxeh.no-ip.com/index.php?page=aboutme.php
notice the ?page=aboutme.php
this tells php that this is a varible.
to show you the page it includes
http://coxeh.no-ip.com/pages/aboutme.php
now to get this script to work all you need to do is use a normal html link to the current page in my case index.php then just rename the varible
http://coxeh.no-ip.com/index.php?page=downloads.php http://coxeh.no-ip.com/index.php?page=aboutme.php
hope its not too confusing :/