I store all of my scripts in the same place on the server and reference then using PHP include statements. But what if I want or need to change that directory? Do I really want to change every statement? Absolutely not.
One thing that I debated doing was to include a file named 'scriptsdir.php' that would be in the home directory for easy access. All this file would be responsible of doing is to define the constant 'SCRIPTS_DIR' as that directory. This suffices but if THAT file has to be moved or something happens to it, etc. I was wondering if I could define a constant that would be accessible without ever having to manually define it.
Is there a way to do this in php.ini or .htaccess or anything?