|
Posted by NC on 05/10/06 18:06
Alan Little wrote:
>
> I love the __FILE__ constant; it's been enormously useful.
> Is there a constant that would be the equivalent of $PHP_SELF?
> That's also a useful value, but according to the docs, "...may
> or may not [exist] in $_SERVER."
This is a sweeoing generalization; under Apache and IIS,
$_SERVER['PHP_SELF'] is always available.
Cheers,
NC
Navigation:
[Reply to this message]
|