Possible Duplicate:
Use case for output buffering as the correct solution to “headers already sent”
Headers already sent by PHP
To avoid 'headers already sent' error message can I use obstart before session start in PHP, like below:
// db information here
ob_start();
session_start();
Is this a good practice to use in every PHP project to avoid 'header already sent error' or it is for special cases?