<?php
if (!session_is_registered('count')) {
session_register('count');
$count = 1;
}
else {
$count++;
}
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.<p>
To continue, <A HREF="nextpage.php?<?php echo strip_tags (SID)?>">click here</A>
Above are the codes that have few warnings. Those are:
Warning: session_register(): Cannot send session cookie - headers already sent by (output started at d:\program files\apache group\apache\htdocs\try.php:7) in d:\program files\apache group\apache\htdocs\try.php on line 9
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at d:\program files\apache group\apache\htdocs\try.php:7) in d:\program files\apache group\apache\htdocs\try.php on line 9
How to solve it?? I have a longer codes but have the similar problem too. If i am able to solve above..i might be able to solve that one too. Please help me...and thank you very much.