ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

Re: ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

by mindphp » 12/04/2011 1:40 pm

ช่วยดูให้หน่อยนะค่ะ Error Warning: Cannot modify header information

by pammika » 12/04/2011 9:57 am

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\webboard\question_view.php:8) in C:\AppServ\www\webboard\question_view.php on line 9

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\webboard\question_view.php:8) in C:\AppServ\www\webboard\chksession.php on line 2

ควรไปแก้ไขที่ไหนช่วยบอกหน่อยนะค่ะ
ขอบคุณค่ะ

โค้ดที่ใส่ chksession.php

Code: Select all

<?
session_start();
$sess_userid=$_SESSION[sess_userid];
$sess_username=$_SESSION[sess_username];
if ($sess_userid<>session_id() or $sess_username=="") {
    header("Location: index.html");     exit();
} 
?>

Top