08-23-2008, 01:46 AM
|
#18 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
Additionally there is also;
PHP Code:
define('SITE_ROOT', pathinfo(__FILE__, PATHINFO_DIRNAME));
Multiple methods to reach the same objective, the essence of PHP.
My idea originally was to allow the user to install it to any directory they wished, with the ability to again modify that via the admin panel (with checks in place, of course, to make sure the files were located in the new location beforehand to avoid breaking the system).
It would seem to be a better idea at this point to just hardcode the system paths to ease initial installation and setup, and anybody who gets adventurous can modify the code from there to change the locations, instead of visa versa.
Thanks for all the input everybody.
-m
|
|
|
|