Hi i wonder if someone can help. I have the following file. I tested it on XAMPP Apache and works ok. But when i load the same on the server it shows errors. Just to say the <?php tag is on the first line of the file.
<?php
// begin the session
session_start();
// set the value of the session variable 'foo'
$_SESSION['foo']='bar';
// echo a little message to say it is done
echo 'Setting value of foo';
?>
And the errors that show are:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Domains\mywebsite.com\wwwroot\login.php:1) in C:\Domains\mywebsite.com\wwwroot\login.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Domains\artcadia.org\wwwroot\login.php:1) in C:\Domains\artcadia.org\wwwroot\login.php on line 3
Hope someone can help.
M.