PHP:ob_start() Display page at once, forget about cookie,headers sent too early errors PHP: ob_start () หน้าจอแสดงผลพร้อมกันลืมเกี่ยวกับคุกกี้, หัวส่งข้อผิดพลาดเร็วเกินไป
Posted on 21. โพสต์ใน 21. Aug, 2009 by Dragos in Coding , PHP ส.ค., 2,009 โดย Dragos ใน การเข้ารหัส, PHP
If you want to display your web pages at once, not subsequently, and reduce the “headers already sent, cannot send cookie information” errors, add ob_start() at the start of your script. ถ้าคุณต้องการแสดงหน้าเว็บพร้อมกันไม่ได้มาและลดส่วนหัว "แล้วส่งมาไม่สามารถส่งข้อมูลคุกกี้ข้อผิดพลาด" เพิ่ม ob_start () ที่เริ่มต้นของสคริปต์ของคุณ.
This function will turn output buffering on. งานนี้จะเป็นการ output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. ในขณะที่ output buffering ใช้งานไม่ถูกส่งออกจากสคริปต์ (นอกเหนือจากส่วนหัว) แทน output จะเก็บไว้ในบัฟเฟอร์ภายใน. (php.net) (php.net)
You can also manipulate the contents of the output by using the function ob_get_contents() คุณยังสามารถจัดการเนื้อหาของผลผลิตโดยใช้ ob_get_contents ฟ ()
Related posts: บทความที่เกี่ยวข้อง:
- Browsing errors: пщщпду or пщщпдуюсщь ข้อผิดพลาดในการเบราส์: пщщпду หรือ пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP PHP: วิธีการดาวน์โหลดหน้าเว็บ (ส่งเรื่องที่สนใจเว็บ aka) กับ PHP
- Coding:How to fetch user profile data with SSI.php from a SMF forum database รหัส: วิธีการเรียกข้อมูลโปรไฟล์ผู้ใช้กับ SSI.php จากฐานข้อมูลเวที SMF












































