Saleha,
$HTTP_COOKIE_VARS was used before PHP 4.1 and
$_COOKIE is used after PHP 4.1 and it is a superglobal variable.
Unless you are using PHP 4.1 or less i strongly encourage you to use the latest version of PHP predefined variable as the old naming conventions has been depreciated.
http://php.net/manual/en/reserved.variables.cookies.php
And if you are unsure which PHP version you should move on, then check your production server version of PHP and do a clone setup on your local. Otherwise if you want to just practice PHP in your local, i'd prefer latest stable version. You could find it here:
http://www.php.net/downloads.php
Thanks
Yamin
--- In phpexperts@yahoogroups.com, Saleha Latif <salehalatif@...> wrote:
>
> Asalamoalikum all,
>
> I hope all of you are in good health.
> Can any1 tell me whats difference b/w
>
> $HTTP_COOKIE_VARS['V']; & $_COOKIE['V'];
> Thanks in advance,
>
> Regards
> Saleha
>
Wednesday, June 1, 2011
[phpXperts] Re: difference b/w $HTTP_COOKIE_VARS['V']; & $_COOKIE['V'];
__._,_.___
Visit phpXperts website at www.phpxperts.net
MARKETPLACE
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment