Posted by Alan Little on 05/11/06 13:58
Carved in mystic runes upon the very living rock, the last words of NC of
comp.lang.php make plain:
> 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 sweeping generalization; under Apache and IIS,
> $_SERVER['PHP_SELF'] is always available.
I wish it were, but I've encountered instances where it wasn't.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
[Back to original message]
|