Jump to content

session_start (NOT) ;


phpretard

Recommended Posts

This is the top of my document and the only page thus far.

 

I have used this many times and this is the first problem I have had.

 

Any help?

 

<?
session_start();
?>

<!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>$company_name</title>
<link rel='stylesheet' type='text/css' href='default.css' media='screen' />
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' />
</head>

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/t/h/e/html/index.php:1) in /home/content/t/h/e/html/index.php on line 2

 

 

Thank you as always.

Link to comment
https://forums.phpfreaks.com/topic/98927-session_start-not/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.