environmental variables...
Posted: Tue Dec 25, 2007 6:44 pm
hey guys,
I would like to set a default path for my "php root" constant, that will either load by default into my $_SERVER global or simply just load into my php scripts before anything else.
This way I won't have to worry about relative paths and can link to everything absolutely...
for example rather than using:
include('/includes/file.php')
I can use include(ABSPATH.'includes/file.php');
Thanks
Andrew
I would like to set a default path for my "php root" constant, that will either load by default into my $_SERVER global or simply just load into my php scripts before anything else.
This way I won't have to worry about relative paths and can link to everything absolutely...
for example rather than using:
include('/includes/file.php')
I can use include(ABSPATH.'includes/file.php');
Thanks
Andrew