i had this error in my site:
Warning: session_start() [function.session-start]: Cannot send session cache limiter -
headers already sent (output started at /home/rentedco/public_html/try6.php:2) in
/home/rentedco/public_html/try6.php on line 2
i have created a simple php file containing only the beggining of the other pages:
<!DOCTYPE html>
<?php session_start();
echo 'fsdf';
?>
and i discovered that if i remove the DOCTYPE i dont get this problem anymore, my problem is that i dont want to ruin something else by removing this header.
can i remove it? can i pt it after the session_start call?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…