MDColson
11-08-2004, 11:54 PM
My php files are currently set up like this...
include 'includes/header.inc'
page specific data
include 'includes/footer.inc'
Is it possible that I set up my 1 index file to contain all the header and footer informaion, then pass info like aboutme, server.. in the form of index.php?about or index.php?server whereby it would just substitute the "page specific data" by calling the correct page specific file... like if it called index.php?aboutme it would just pull the data from aboutme.inc and put it in the page? I'm sorry if my question is confusing...
Check out www.mdcolson.com and you will see what I mean that all of my pages contain the same header/footer info...
I'm just wondering if I can only have 1 file in my html root, and then just parse in the page specific data as needed...
Mark
edit: or is this method only applicable where it pulls the info from a mysql table?
include 'includes/header.inc'
page specific data
include 'includes/footer.inc'
Is it possible that I set up my 1 index file to contain all the header and footer informaion, then pass info like aboutme, server.. in the form of index.php?about or index.php?server whereby it would just substitute the "page specific data" by calling the correct page specific file... like if it called index.php?aboutme it would just pull the data from aboutme.inc and put it in the page? I'm sorry if my question is confusing...
Check out www.mdcolson.com and you will see what I mean that all of my pages contain the same header/footer info...
I'm just wondering if I can only have 1 file in my html root, and then just parse in the page specific data as needed...
Mark
edit: or is this method only applicable where it pulls the info from a mysql table?
