|
Posted by Chung Leong on 05/10/06 16:59
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.
>
> --
> Alan Little
> Phorm PHP Form Processor
> http://www.phorm.com/
PHP_SELF should always be present in a web environment. It's a PHP
variable (it's called PHP_SELF after all). The individual SAPI modules
are responsible for setting it, which they all do.
Navigation:
[Reply to this message]
|