Constant which undefine itself...
Posté : 24 oct. 2006, 16:06
Hi,
I have an unbelievable problem... In the following php code :
In the first file included i define the constant PATH_CLASS.
The output is :
and the output is :
Does Somebody know where can it come from ?
Thanks.
I have an unbelievable problem... In the following php code :
Code : Tout sélectionner
include_once($strHomePath."sitedef.php");
echo defined("PATH_CLASS") ? "True<br/>" : "False<br/>";
echo PATH_CLASS."<br/>";
include_once(PATH_LOGICS."common.logics.php");The output is :
In the file PATH_LOGICS."common.logics.php" the first lines are
Code : Tout sélectionner
echo defined("PATH_CLASS") ? "True<br/>" : "False<br/>";
echo PATH_CLASS."<br/>";!!!False
PATH_CLASS
Does Somebody know where can it come from ?
Thanks.