LastActionHero
September 16th, 2001, 05:25
ok, I have had enough of updating all individual pages. Now I'm moving to PHP based template system. The rest I have figured out... and I have a script which does all the work.
It includes the header and footer which remain the same on all the pages and the body changes according to what i want. The script just has three include statements. Now I need to pass the name of the page i need to include in the body like this ....
domain.com/page.php?index.html
Now how do i read the index.html part in? I need to store it in a variable and call it in the include statement
<? include(variable); ?>
It includes the header and footer which remain the same on all the pages and the body changes according to what i want. The script just has three include statements. Now I need to pass the name of the page i need to include in the body like this ....
domain.com/page.php?index.html
Now how do i read the index.html part in? I need to store it in a variable and call it in the include statement
<? include(variable); ?>