phpretard Posted April 1, 2008 Share Posted April 1, 2008 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 More sharing options...
keeB Posted April 1, 2008 Share Posted April 1, 2008 The code you are showing is index.php? Link to comment https://forums.phpfreaks.com/topic/98927-session_start-not/#findComment-506169 Share on other sites More sharing options...
coder_ Posted April 1, 2008 Share Posted April 1, 2008 do you have an output anywhere before <? session_start(); ?> O! Are your short tags enabled? Link to comment https://forums.phpfreaks.com/topic/98927-session_start-not/#findComment-506173 Share on other sites More sharing options...
kenrbnsn Posted April 1, 2008 Share Posted April 1, 2008 Make sure there are no characters before the initial "<?" Ken Link to comment https://forums.phpfreaks.com/topic/98927-session_start-not/#findComment-506174 Share on other sites More sharing options...
phpretard Posted April 1, 2008 Author Share Posted April 1, 2008 Thank you all! Link to comment https://forums.phpfreaks.com/topic/98927-session_start-not/#findComment-506177 Share on other sites More sharing options...
jibster Posted April 1, 2008 Share Posted April 1, 2008 What was the answer? Link to comment https://forums.phpfreaks.com/topic/98927-session_start-not/#findComment-506345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.