note 47474 deleted from function.ob-start by tularis

From: Date: Wed, 17 Nov 2004 16:34:54 +0000
Subject: note 47474 deleted from function.ob-start by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80645@lists.php.net to get a copy of this message
Note Submitter: PHP4_Beginners (RWH1786) ---- Just would like to point out that for you beginners in PHP (those who aren't very familiar with coding and such) - If you keep receiving a "Header Already Sent" error on your site... Put the "ob_start();" at the very top of your page (or if you have a header include, then place it on the top of your header include). On Linux Systems w/ PHP 4.3.9 (version and system can be checked by your PHP web host's CPanel for your account) - I was able to bypass the flush function - it outputs the buffered heading at the end of your coding anyway (unless you need it to flush at a given moment for a purpose). I just thought I would clear that up for the beginners: You get a 'Header Already Sent' error, try using the code at the top of your PHP file or Header Included File: <?php ob_start(); // BUFFER THE HEADERS FOR ENTIRE PAGE ?> ------------- Continue Page Coding --------------- ---- Reason: useless example

« previous php.notes (#80645) next »