RE: [PHP] COOKIES--Header a problem...????

From: Date: Tue, 07 Nov 2000 19:54:00 +0000
Subject: RE: [PHP] COOKIES--Header a problem...????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24172@lists.php.net to get a copy of this message
USE ob_start() before your html-code then use ob_end_flush() to stop buffering the set your cookie! requires PHP4 > -----Original Message----- > From: John Donagher [mailto:john@webmeta.com] > Sent: Tuesday, November 07, 2000 6:40 AM > To: Dhaval Desai > Cc: php-general@lists.php.net > Subject: Re: [PHP] COOKIES--Header a problem...???? > > > > Yes, check out the output buffering functions in the PHP manual. > > Note that you cannot send a header after any data has been *sent* > to the browser, so the alternative is to send the data to a > buffer and have your logic determine when to actually flush it to > the browser. > > John > > On Tue, 7 Nov 2000, Dhaval Desai wrote: > > > Hi!! > > > > I want to set cookie using php in the midst of a > > page.. > > is it possible..?? > > Can it be done by any means..? > > Actually I want to set a cookie as soon as a user > > registers himself on my site..this will be in between > > somewhere not in the headers.. > > > > So can anybody help me out with this.. > > > > Thanx a lot and a lot! > > Dhaval Desai > > > > __________________________________________________ > > Do You Yahoo!? > > Thousands of Stores. Millions of Products. All in one Place. > > http://shopping.yahoo.com/ > > > > > > -- > > John Donagher > Application Engineer > Intacct Corp. - Powerful Accounting on the Web > 408-395-0989 > 720 University Ave. > Los Gatos CA 95032 > www.intacct.com > > -----BEGIN PGP PUBLIC KEY BLOCK----- > Version: GnuPG v1.0.1 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k > PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/ > OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v > 1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu > 0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz > 0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0 > zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74 > yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4 > Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h > Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW > AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd > dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE > mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD > jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D > rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p > kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y > h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI > RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy > BACeOx83WlBhVScYWo+BUzntJ6ks4T0= > =OkJU > -----END PGP PUBLIC KEY BLOCK----- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24172) next »