|
Posted by Alan Little on 05/11/06 13:56
Carved in mystic runes upon the very living rock, the last words of
Jerry Stuckle 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." In a distributed app, may or may not doesn't fly. I'm
>> surprised, if there isn't a reliable way to retrieve this value.
>>
> If it's supplied by the web server, it's available. But PHP cannot
> guarantee what the servers give PHP.
>
> __FILE__, OTOH, is under complete control of PHP, so PHP can guarantee
> its existence.
I understand; that's what I like about __FILE__. I was wondering if there
were a similar constant with the same value as $PHP_SELF.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
[Back to original message]
|