Wednesday, June 1, 2011

[phpXperts] Re: difference b/w $HTTP_COOKIE_VARS['V']; & $_COOKIE['V'];

 



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
>

__._,_.___
Recent Activity:
Visit phpXperts website at www.phpxperts.net
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.

.

__,_._,___

No comments: