ถ้าขึ้น Error Warning แบบนี้ต้องแก้อย่างไร ? Warning: session_start() [function.session-start]: Cannot send session cookie - headers

ถ้าขึ้น Error Warning แบบนี้ต้องแก้อย่างไร  ?

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\vhosts\yourdomain.com\httpdocs\code.php:1) in C:\Inetpub\vhosts\yourdomain.com\httpdocs\code.php on line 4

Errror ลัษณะนี้แก้ไขโดยใช้ใส่  @  หน้าคำสั่ง session_start();

ตัวอย่างเช่น

@session_start();

Errror ก็จะหายไป
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

ถ้าต้องการให้ Register_Globals on จะต้องทำอย่างไรบ้าง

คุณสามารถทำได้โดย 1. สร้างไฟล์ .htaccess 2. โดยในไฟล์จะต้องมีข้อความดังต่อไปนี้ php_flag...

วิธีการใช้ FTP อัพโหลดข้อมูลเว็บไซท์ โปรแกรม Filezilla

Download โปรแกรม คลิกที่นี่!!ขั้นตอนการใช้งานสำหรับโปรแกรม filezilla 1.ให้ตรวจสอบ mode ในการ...

CAPTCHA คืออะไร

           "CAPTCHA" ออกเสียงว่า แคปช่า ซึ่งย่อมาจาก Completely Automated Public Turing...

สำหรับ server linux ถ้าต้องการให้ PHP magic_quotes_gpc on จะต้องทำอย่างไรบ้าง

สำหรับ server linux ถ้าต้องการให้ PHP magic_quotes_gpc on จะต้องทำอย่างไรบ้าง คุณสามารถทำได้โดย...

วิธีการเพิ่มเวลาในการ execut php scripts (max_execution_time) ทำอย่างไร?

วิธีการเพิ่มเวลาในการ execut php scripts (max_execution_time) ทำอย่างไร? วิธีนี้สำหรับ server...