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 कोडिंग, PHP में Dragos द्वारा
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 का उपयोग कर उत्पादन की सामग्री में हेरफेर कर सकते हैं ()
Related posts: संबंधित पोस्ट:
- Browsing errors: пщщпду or пщщпдуюсщь ब्राउज़िंग त्रुटियाँ: пщщпду या пщщпдуюсщь
- PHP: How to download a webpage (aka web scrapping) with PHP : PHP कैसे एक वेबपेज (उर्फ PHP के साथ वेब समाप्त) डाउनलोड करने के लिए
- Coding:How to fetch user profile data with SSI.php from a SMF forum database : कोडिंग कैसे एक SMF मंच डेटाबेस से SSI.php के साथ उपयोगकर्ता प्रोफ़ाइल डेटा लाने के लिए












































