Page 1 of 1
Need help with php problem!
Posted: Sun Jul 07, 2002 10:43 pm
by Johnathan
Ok first I don't know anything about PHP. All I want to to is have 1 file (index.php) and I guess templates to be inserted itto that index at a certin point. All the links on index.php would point to a template, so if I wanted to make changes to the site I just have to change index.php. Thanks.
Posted: Sun Jul 07, 2002 11:57 pm
by ajaypatil
Did not understand your problem.

Posted: Mon Jul 08, 2002 1:55 am
by roninblade
in your index.php file place this code where you want to insert your content...
Code: Select all
include("/path/to/contents/".$content.".html");
then in your links in the index.php you can do them like so...
Code: Select all
<a href="index.php?content=myfile">my File</a>