So i've got the following code:
ini_set("include_path" , ini_get("include_path") . ":/Library/WebServer/Documents/__CMS/:");
ini_set('display_errors', 'ON');
$base_url = '127.0.0.1';
$lib_dir = '/Library/WebServer/Documents/__CMS/';
header('Location: admin/main.php?base_url='.$base_url.'&lib_dir='.$lib_dir);
which is pretty ugly but simple, I'm trying to find a way to deal with multiple files in multiple location's i'm somewhat familiar with bootstraping, but don't fully know the "best practices".
my end goal would be one file that parses a ini file and distributes variables, locations and such to the other files...all files would need to pass thru this file before being loaded. I was looking into setting variables via the .htaccess method but i'm not sure how that works.
any help would be great! (i'm looking for some theory and best practices here ;)
thanks!