Reply to Re: __SELF__?

Your name:

Reply:


Posted by Alan Little on 05/11/06 14:13

Carved in mystic runes upon the very living rock, the last words of Alan
Little of comp.lang.php make plain:

> Carved in mystic runes upon the very living rock, the last words of
> Tim Van Wassenhove of comp.lang.php make plain:
>
>> On 2006-05-10, Alan Little <alan@n-o-s-p-a-m-phorm.com> wrote:
>>
>>> I love the __FILE__ constant; it's been enormously useful. Is there
>>> a constant that would be the equivalent of $PHP_SELF?
>>
>> Why would you want the value? I still have to see my first good
>> reason to use it ;)
>
> It allows a script to find out where it's installed (which can also be
> done with __FILE__ of course),

Actually, I misspoke. $PHP_SELF gives the URL path; __FILE__ gives the
filesystem path. So, the path info of $PHP_SELF can be useful, as well.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/

[Back to original 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

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