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. Quote Link to comment 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? Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
phpretard Posted April 1, 2008 Author Share Posted April 1, 2008 Thank you all! Quote Link to comment Share on other sites More sharing options...
jibster Posted April 1, 2008 Share Posted April 1, 2008 What was the answer? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.