Reply to Re: __SELF__?

Your name:

Reply:


Posted by Jerry Stuckle on 11/19/65 11:47

Andy Jeffries wrote:
> On Thu, 11 May 2006 08:43:28 -0400, Jerry Stuckle 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.
>>>
>>
>>Can you be more specific? I've never seen a case on Apache or IIS where
>>it isn't available.
>>
>>Perhaps someone overwrite the $_SERVER array?
>
>
> Or PHP configured as a CLI binary (AFAIK $_SERVER is only available to
> apache modules and ISAPI modules).
>
> Cheers,
>
>
> Andy
>

Good point, Andy. I never use PHP as a CLI, and completely forgot that one.

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

[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

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