movie1-rev03.php code
when I load
<?php
session_start();
$_SESSION['username'] = "Joe12345";
$_SESSION['authuser'] = 1;
?>
<html>
<head>
<TITLE>Find my Favorite Movie!</TITLE>
</head>
<body>
<?php
$myfavmovie = urlencode("Life of Brian");
echo "<a href='moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
echo "</a>";
?>
</body>
</html>
I get the error messages of
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\web\htdocs\moviesite.php:1) in C:\web\htdocs\moviesite.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\web\htdocs\moviesite.php:1) in C:\web\htdocs\moviesite.php on line 2
I literally copied the code directly into the file without any extra space. Please tell me how to troubleshoot
|