|
|
 |
Re: FN-FORUM: Full Referrer URL PHP
date posted 12th May 2008 20:04
> I think you'll find that they're deprecated under PHP6 (See this ( =
> http://www.ibm.com/developerworks/opensource/library/os-php-future/?ca=
=3Ddgr-lnxw01PHP-Future =
> ) for reference ) but you'll still be able to use =
> $_SERVER['REMOTE_ADDR'] etc. It's just the long names that're =
> deprecated AIUI.
The ones that only exist if register_globals is on are the deprecated =
ones, as using register_globals (which itself is deprecated for PHP5) is=
=
such a large security hazard. They are deprecated (i.e. advised against)=
=
in PHP5 and will not exist at all in PHP6 when the ability to use =
register_globals is removed.
The $_SERVER, $_GET, $_POST variables are superglobals, and so are =
available in any scope (e.g. inside functions, objects, etc.) without =
needing to declare them as global.
HTH,
Anthony
-- =
www.fonant.com - Quality web sites
|
 |
|