template question (or is it)
Posted: Sat Jun 28, 2003 1:23 am
I'm just starting php with this site:
http://www.3dmaniac.com/index2.php?file=members.php
As you may notice the url isn't set up good because if I needed to add another question mark after home.php I was told it can't be done. I would like to setup a system so that you would have to go to this url instead of above.
http://www.3dmaniac.com/members
Each section of this site has is included through:
<?
$docroot = getenv("DOCUMENT_ROOT");
$pathfilename = $docroot . "/" . $file;
?>
then inserted in by: <? include($pathfilename); ?>
I could go about this by making a separate template index2.php for every page. But that would be tedious. I know there is a better way because a ton of sites have it set up this way.
An example:
http://www.flashkit.com/tutorials/
I'm not asking for something to walk me through the whole thing, (all though it would be nice
), but for someone to just point me in the right direction.
Thanks
http://www.3dmaniac.com/index2.php?file=members.php
As you may notice the url isn't set up good because if I needed to add another question mark after home.php I was told it can't be done. I would like to setup a system so that you would have to go to this url instead of above.
http://www.3dmaniac.com/members
Each section of this site has is included through:
<?
$docroot = getenv("DOCUMENT_ROOT");
$pathfilename = $docroot . "/" . $file;
?>
then inserted in by: <? include($pathfilename); ?>
I could go about this by making a separate template index2.php for every page. But that would be tedious. I know there is a better way because a ton of sites have it set up this way.
An example:
http://www.flashkit.com/tutorials/
I'm not asking for something to walk me through the whole thing, (all though it would be nice
Thanks