Need help with php problem!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Johnathan
Forum Newbie
Posts: 1
Joined: Sun Jul 07, 2002 10:43 pm

Need help with php problem!

Post 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.
ajaypatil
Forum Newbie
Posts: 17
Joined: Wed Jul 03, 2002 2:15 am
Location: Pune, India
Contact:

Post by ajaypatil »

Did not understand your problem. :cry:
User avatar
roninblade
Forum Newbie
Posts: 21
Joined: Thu Jun 13, 2002 7:12 pm

Post 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>
Post Reply