problem creating cookies - "Cannot add header .."
Posted: Wed Nov 08, 2006 4:27 am
Hi,
When I'm trying to use a cookie I'm getting the following error:
I'm runing the PHP pages on my Computer using Apache server installed by PHPTriad.
When I'm runing blank page with nothing but this line everything works well. I wrote the follwing line:
Thanks!
When I'm trying to use a cookie I'm getting the following error:
Code: Select all
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\direct_site\try3\between1to2.php:3) in c:\apache\htdocs\direct_site\try3\between1to2.php on line 44When I'm runing blank page with nothing but this line everything works well. I wrote the follwing line:
Code: Select all
setcookie("sdfds", "blabla", time()+3600);