<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2>If you use a headers and footers instead your URL's will be
nicer, since you wont be passing a variable in them.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2>Google prefers "nice" url's and will give you a higher
rank. They are often easier for visitors to
type/remember.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2>For example:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2><A
href="http://www.yoursite.com/page.php">www.yoursite.com/page.php</A> is
nicer than</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2><A
href="http://www.yoursite.com/index.php?page=12">www.yoursite.com/index.php?page=12</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2>hope this helps,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=126011411-09122005><FONT face=Arial
color=#0000ff size=2>Pete</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> phpwm-bounces@mailman.lug.org.uk
[mailto:phpwm-bounces@mailman.lug.org.uk] <B>On Behalf Of </B>Matt
Harris<BR><B>Sent:</B> 09 December 2005 10:55<BR><B>To:</B>
phpwm@mailman.lug.org.uk<BR><B>Subject:</B> [Phpwm] Site
Structure<BR></FONT><BR></DIV>
<DIV></DIV>Hi Folks,<BR><BR>Hope your all ok.<BR><BR>I was after some basic
advice, regarding setting up my site using php (this is my first php
project).<BR><BR>I have my index page with two divs, one for the menu and one
for the content where I pull in the different pages, by setting a variable thats
the name of the page, in the url. Below is the code I have in my
index.<BR><BR><?php<BR>if (isset($_GET['page'])) {<BR>$page = $page . "." .
"php";<BR>include("$page");<BR>}<BR>else
{<BR>include("welcome.php");<BR>}<BR>?><BR><BR>This works fine, but if I want
to redirect the user to a different page using the header function, I get an
error because there is html on my index page, before the php code.<BR><BR>How do
you guys go about setting up your sites in a resourceful way?<BR><BR>Am I just
better off sticking to including a header and a footer on all my
pages?<BR><BR>Any advice would be much appreciated.<BR><BR>Many
thanks.<BR><BR>Matt<BR>
<P>
<HR SIZE=1>
<FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Play <A
href="http://santas-christmas-party.yahoo.net/">Santa's Celebrity Xmas
Party</A>, an exclusive game from Yahoo! </FONT>
</BODY></HTML>