I have this code in a config file I am building:
define("PROCESSOR_PATH", realpath(dirname(__FILE__).'/usermanager/processors'));
define("LIBRARY_PATH", PROCESSOR_PATH.'/library');
define("TEMPLATE_PATH", realpath(dirname(__FILE__).'/usermanager/assets/templates'));
if I call any of these constants after including my config file I just get nothing. so even if I do just this:
echo PROCESSOR_PATH;
Nothing is echoed. Can someone point me in the direction of what I am doing wrong?
realpath() returns false if the directory does not exist. So that would be a fair reason.
If that's not the reason, then you should isolate your problem: