I've been through about 10 tutorials that never finish quite in the way I'd expected them to. I'm looking for a way to bring html content files from separate directories to a variable in my main html template to be displayed.
This way I can have a header.inc, a footer.inc and a content variable controlled by a php menu bar. Seems very simple...
But how do I make it secure?
include $DOCUMENT_ROOT . $file . ".inc";
Does $DOCUMENT_ROOT allow me to bring in files from separate sub directories? And will this be the correct method for doing things? Somebody once mentioned something about mod rewrite?
I'm just starting down my PHP path so any help is greatly appreciated.
Users browsing this forum: Yahoo [Bot] and 2 guests