note 14195 deleted from function.headers-sent by hholzgra
| From: | hholzgra@php.net | Date: | Tue, 06 Aug 2002 11:52:58 +0000 |
| Subject: | note 14195 deleted from function.headers-sent by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34390@lists.php.net to get a copy of this message | ||
hi there,
it seems to me that some people dont thoroghly read through the manual and get a good grip on PHP
before posting comments to help others. however your attempt has been noted and there are
corrections to be made... you can... CAN send ALL of your text out first and place your headers at
the end of your code. This can be achieved ONLY if you start off your first line or so of code
**before anything is printed out basically** with "ob_start();". this causes all output
to be saved in a buffer **no matter how many includes or requires you may have, this is only needed
at the first line file being viewed** when your all done and want to spit it all out at the
browser, you may 1) let PHP do it for you or 2) use 'ob_end_flush();'. this in turn
'spits' out every thing in the buffer in the proper order for sending **ie, headers
first**.
Good luck coding,
~ Frank Mattia
CEO/Chief Engineer
Mattia & Harris Design Solutions ~