Cannot send session cookie - headers already sent
Hi, I'm getting this error, anyone know anything about it?
"Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\index.php:3) in C:\xampp\htdocs\index.php on line 3"
My Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title Goes Here</title>
<?php session_start(); ?>
</head>
I can't figure out why session_start() is causing an error?
|