Need help with php problem!
Moderator: General Moderators
Need help with php problem!
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.
- roninblade
- Forum Newbie
- Posts: 21
- Joined: Thu Jun 13, 2002 7:12 pm
in your index.php file place this code where you want to insert your content...
then in your links in the index.php you can do them like so...
Code: Select all
include("/path/to/contents/".$content.".html");Code: Select all
<a href="index.php?content=myfile">my File</a>