You are here: Re: $_SERVER[PHP_self] « PHP Programming Language « IT news, forums, messages
Re: $_SERVER[PHP_self]

Posted by Floortje on 06/06/07 17:31

vinnie wrote:
> can someone explain me with an easy example what the function for?
>
> I've read on the php.net, but didn;t really catch the point. I'm a
> newbie.
>
> Thanks


Personally i never use $_SERVER['PHP_SELF'] (mind the spellling). I
really cant image when I would ever use it but I guess it could be handy
for stuff like this:


// refresh page
header("Location: ".$_SERVER['PHP_SELF']);

//forms
echo '<form action="'.$_SERVER['PHP_SELF'].'"'>;

I presonally prefer to have a navigation class handle the current
location :-)

Arjen

--
www.arjenkarel.nl

 

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

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