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

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

pammika
PHP Newbie
PHP Newbie
โพสต์: 6
ลงทะเบียนเมื่อ: 28/03/2011 9:32 pm

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

โพสต์ที่ยังไม่ได้อ่าน โดย pammika »

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

โค้ด: เลือกทั้งหมด

<?
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();
} 
?>
แก้ไขล่าสุดโดย mindphp เมื่อ 25/03/2012 10:16 pm, แก้ไขไปแล้ว 2 ครั้ง.
เหตุผล: ครอบโค้ด [code] Code ของท่าน [/code] ชื่อกระทู้ไม่สื่อถึงปัญหา
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 123