Hi,
What I trying to do is to define a constant variable in a config file:
DEFINE("PATH", dirname(__FILE__) . "/");
So that, when I want to "include" or redirect, I could do this:
include(PATH . "filename.php");
or
header("location: " . PATH . "logout/php");
But when I try doing an echo of PATH, I get this result:
/home/myDOMAIN/public_html
Am I declare the constant wrongly? (To be honest, I copy that code from Wordpress config file)