Is there any danger on using ob_start() and ob_end_flush() in php scripts?
If i use them in my scripts just simply to avoid "header already sent" errors regardless of what i sent using header() command, is it a bad programing practice?
I would put it up there with the @ symbol. Sometimes you have to use it, but most times you shouldn't. Also, isn't PHP supposed to have try catch blocks in version 5? That would solve the problems with errors being displayed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.