So you've got a web site and unfortunately for you, your coding outputs text before you call the header() function PHP provides thus leaving you with a broken web site.
Well this simple quick fix will sort those right out. This is also good for webmasters who use the auto_prepend_file or similar in their htaccess to display header files before content is displayed.
Read more to find out how it's done!
So lets start by opening up your .htaccess file and then just add this line:
php_value output_buffering 5120
5120 - Huh?
5120 means 5KB
(kilobytes). This basically means that your content is read from the top of the page, until 5KB has been processed. You may need more depending if you have a large header before you use the header() function.
Remember: 1024 = 1KB
(kilobyte)Posted by Steven Sullivan on 25th August, 2006 - 15:50:21 GMT
There are no comments. Why not be the first to comment?