:
: you say yourself that it should be calle before any (HTML) tags or other output, then why do you use setcookie AFTER ob_start??? quite silly 
:
: as you say it yourself, use setcookie as early as possible! so ABOVE ob_start() should do the trick.
:
using setCookie() after ob_start() is still ok but after html output (<html> tag is before <?php ?> tag) is very-very wrong
:
: : i know that the ssetcookies function should be called b4 any tags or other function, then i just do it so. but it display nothing but "setcookie("cuky_info","cuki_data",0,"","",0);" on the webpage.
: :
: : Later on, i try the following code:
: : ------------------------------------------------
: : <html>
: :
: : <?php
: : ob_start();
: :
: : setcookie("cuky_info","cuki_data",0,"","",0);
: :
: : ob_end_flush();
: : ?>
: : </html>
: : ------------------------------------------------
: :
: : but it display folowing error this time:
: :
: : Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\tri\setcuki.php:3) in C:\Inetpub\wwwroot\tri\setcuki.php on line 6
: :
: : can anyone tell me whether it is due to my browser's setting or mistakes in my code. thx in advance.
: :
:
:
DarQ
: NEW url-->
http://mark.space.servehttp.com
:
:
NetGert[/italic]