This is my code:
<?php
$value = 'something from somewhere';
setcookie("TestCookie", $value);
?>
I am getting the error message as follows:
Warning: Cannot modify header information - headers already sent by (output started at /home/nairsoft/public_html/page1.php:2) in /home/nairsoft/public_html/page1.php on line 4
I am using a free webhosting server.