You are here: Re: __SELF__? « PHP Programming Language « IT news, forums, messages
Re: __SELF__?

Posted by Jerry Stuckle on 05/10/06 15:45

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,

If it's supplied by the web server, it's available. But PHP cannot guarantee
what the servers give PHP.

For instance, Apache and IIS both supply it. But Acme Instant Web Server might not.

__FILE__, OTOH, is under complete control of PHP, so PHP can guarantee its
existence.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация