Защо в този код ми дава грешка на line 2

lqbo123

Registered
Здрайвете значи ето кода той е за една анкета която дръпнах от тука и пише че има грешка на line 2:
Код:
<?php
session_start();
require "poll/config.php";
require "poll/functions.php";
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Система за анкети</title>
</head>
<body>

<?php
echo poll(1, 1, 200, 1, 1, "1", "green");
?>

</body>
</html>
 
то недава грешка в файла но след като го inlucda се появява грешката

Код:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\index.php:7) in C:\xampp\htdocs\poll\index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\index.php:7) in C:\xampp\htdocs\poll\index.php on line 2
 

Back
Горе