RE: [PHP-WIN] help on cookies please

From: Date: Wed, 08 Aug 2001 19:56:32 +0000
Subject: RE: [PHP-WIN] help on cookies please
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-8722@lists.php.net to get a copy of this message
have a look into your PHP.INI: ; - register_globals = Off ; Global variables are no longer registered for input data (POST, GET, cookies, ; environment and other server variables). Instead of using $foo, you must use ; $HTTP_POST_VARS["foo"], $HTTP_GET_VARS["foo"], $HTTP_COOKIE_VARS["foo"], ; $HTTP_ENV_VARS["foo"] or $HTTP_SERVER_VARS["foo"], depending on which kind ; of input source you're expecting 'foo' to come from. In order to find cookie in $testcookie, you must set register_globals = On otherwise you must use $HTTP_COOKIE_VARS["testcookie"] instead bye MaT > -----Original Message----- > From: dohman [mailto:thedoman@yahoodotcom.php.net] > Sent: Wednesday, August 08, 2001 7:39 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] help on cookies please > > > I'm new to this whole PHP thing, but heres my problem > > using w2k, apache 1.3.? and php4 and IE5 > > basically whaat i want to know is how to accesss a cookie's value from > localhost, that is both server and browser are on the same computer? > > I use setcookie("testcookie","test", time()+360) and the > cookie is placed > (it shows up in my temp inet files) but i can't retrieve the > data. I should > just be able to use '$testcookie' to get the value 'test' right? > > no value shows up. I don't get an 'undefined variable' > error, its just an > empty value. > > what am i doing wrong? thanks in advance! > > chris > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > >

« previous php.windows (#8722) next »