Reply to Re: __SELF__?

Your name:

Reply:


Posted by Chung Leong on 11/15/46 11:47

Alan Little wrote:
> > (In case you want to redirect a user to the same place
> > where he came from after a form submit, using '#' as value for the
> > action is as good and it doesn't has the potential security issues as
> > $_SERVER['PHP_SELF'] has...)
>
> Another great reason for it to be a constant, like __FILE__.
>
> --
> Alan Little
> Phorm PHP Form Processor
> http://www.phorm.com/

__FILE__ is actually a language construct--hence its place in the list
of reserved words.

I think Tim is right about PHP_SELF not being terribly useful. I use
it often enouogh myself, but can't really offer any rational reason to
do so. It's some weird, subconscious mistrust of the browser, I think.

[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

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