PDA

View Full Version : $_GET or $HTTP_GET_VARS


DA Master
04-18-2004, 07:24 AM
Are any of these depricated? If not which is the better one to use?

darksidepuffin
04-18-2004, 07:27 AM
$_GET is the one you should use.$HTTP_GET_VARS is depreciated...has been for a while.

likewise with $_POST and $_COOKIE..use those as opposed to the $HTTP_*_VARS arrays.

ianmh
04-18-2004, 11:15 PM
Also depends on what version of php you are running, but most servers should be running a high enough version for $_GET etc.

Joe
04-19-2004, 05:43 AM
$_GET introduced in 4.1.0

for earlier versions use $HTTP_GET_VARS

DA Master
04-19-2004, 11:50 AM
Cheers guys, appriciate it.