This is a translated page. The original can be found here: http://iwebdevel.com/2009/08/21/phpob_start-display-page-at-once-forget-about-cookieheaders-sent-too-early-errors/
UPDATES VIA RSS | Email עדכונים דרך RSS | אימייל Get updates via feedburner Get updates via twitter
Home / Coding / PHP / PHP:ob_start() Display page … דף הבית / Coding / PHP / PHP: ob_start () בדף הצגת ...

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 אוגוסט, 2009 על ידי 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. פונקציה זו תהפוך את התפוקה על חציצה. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. בעוד באגירה פלט פעיל לא פלט נשלח מהתסריט (למעט כותרות), במקום את הפלט מאוחסן מאגר פנימי. (php.net) (php.net)

You can also manipulate the contents of the output by using the function ob_get_contents() אתה יכול גם לשנות את התוכן של הפלט באמצעות ob_get_contents הפונקציה ()

Translate this post תרגם פירסום


Related posts: הודעות קשורות:

  1. Browsing errors: пщщпду or пщщпдуюсщь שגיאות גלישה: пщщпду או пщщпдуюсщь
  2. PHP: How to download a webpage (aka web scrapping) with PHP PHP: כיצד להוריד דף אינטרנט (aka מבטל אינטרנט) עם PHP
  3. Coding:How to fetch user profile data with SSI.php from a SMF forum database קידוד: כיצד להביא את נתוני פרופיל המשתמש עם SSI.php ממסד נתונים SMF בפורום

    blog comments powered by Disqus תגובות לבלוג powered by Disqus