default include directory
Posted: Fri Jun 16, 2006 6:35 am
Hello,
I'm building a website with files in many different folders, I want all folder to access the config file and class files from one directory at the top level of my directory structure. I've been looking for a way to do it with out changing my path in my scripts, so I'd like to just include 'inc/config.php' anywhere and for it to go to my inc directory regardless of if my script is in the website root or 5 directories down. I'm thinking some kind of .htaccess thing would do this, but I'm stumped. Any ideas?
I'm building a website with files in many different folders, I want all folder to access the config file and class files from one directory at the top level of my directory structure. I've been looking for a way to do it with out changing my path in my scripts, so I'd like to just include 'inc/config.php' anywhere and for it to go to my inc directory regardless of if my script is in the website root or 5 directories down. I'm thinking some kind of .htaccess thing would do this, but I'm stumped. Any ideas?