Header problems? -- Try the quick fix
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)
SOCIAL BOOKMARK - Posted by Steven Sullivan on 25th August, 2006 - 15:50:21 GMT

Comments

There are no comments. Why not be the first to comment?

* Name:
* E-Mail:
Not shown to public
Website:
Emotions:
* Comment:

Up

Down

characters left
* Security Code:
Type this code in the box: 424862
* Required field
© Steven Sullivan 2006 - All Rights Reserved         Video Disclaimer - Valid XHTML & CSS