Page 1 of 1

Assign multiple default folders to look through (path)??

Posted: Fri Apr 11, 2008 1:10 pm
by calfellows
Hello,

Is there some way to assign some folders as a default files paths for the php controller script to look through for templates and content, so that I wont have to keep entering this in all of my includes and urls? I already have my server root defined in a $variable, but I need to add some multiple choices past that.

Code: Select all

 
<?php include ($serverrootdir . ''.$defaultpaths.'' . $data); ?>         .
 
Also, is there some way to do this where my query wont display
the entire url, will hide the folders? Or is this wishful thinking?

Code: Select all

index.php?data=/folder/file.php
I'm not too bright with all of this, so please be thorough?

Thanks in Advance,
Cal