Re: What's up with Cookies on Windows

From: Date: Tue, 16 Jan 2001 19:50:19 +0000
Subject: Re: What's up with Cookies on Windows
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5054@lists.php.net to get a copy of this message
It Worked!!! Boy, they aren't kidding when they are "IT MUST BE THE FIRST THING SENT"! Line 1 now looks like this <?php setcookie("lmco","test",time()+10,"/","",0);?> Thanks for your answer Andrian! -----Original Message----- From: Andrian Pervazov [mailto:apervazov@aspen-marketing.com] Sent: Tuesday, January 16, 2001 12:33 PM To: Joey Garcia Subject: Re: [PHP-WIN] What's up with Cookies on Windows make sure you don't have a blank space before the <? tag Andrian Joey Garcia wrote: > I'm really surprised how difficult it is to get cookies to work with PHP, I > can't seem to get it to work and I've read all these posts and other posts > elsewhere and everyone says the same thing IT MUST BE THE FIRST THING SENT. > I have tried everything, what am I doing wrong??? > > > Any help would be much appreciated!!!!! > > > I get this error message for the code below. > > Warning: Cannot add header information - headers already sent by (output > started at c:\program files\apache group\apache\htdocs\class\cookie.php:2) > in c:\program files\apache group\apache\htdocs\class\cookie.php on line 3 > > > <?php > setcookie("myCookie","test",date("l, d-M-y H:i:s", > (mktime()+1800)),"/","",0); > ?> > > <html> > <head> > <title>Set A Cookie</title> > </head> > > <body> > <h1>Cookie Test</h1> > > </body> > </html> > > > > > -- > 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 (#5054) next »