The following code:
<?php
session_start();
session_register("sess_var");
$sess_var = "Hello";
echo "content is $sess_var";
?>
gives me the error:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\nusphere\apache\htdocs\testing\test.php:2)
in c:\program files\nusphere\apache\htdocs\testing\test.php
on line 2
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\nusphere\apache\htdocs\testing\test.php:2)
in c:\program files\nusphere\apache\htdocs\testing\test.php on line 2
content is Hello
I'm using PHP 4.3.3. and Windows XP
Please help!