Jump to content

ob_buffer is gone, but i'm not getting errors.....


AlexGrim

Recommended Posts

Hey, i keep seeing people say that using output buffering is a lazy man's fix, so i started experimenting with ways to modify my framework to NOT use it. The funny thing is that i took out the ob_start (or whatever it is), and i'm not getting any errors when logging in, redirecting, etc. Is this because i have a cache in my php.ini?

 

output_buffering = 4096

 

Again, that is just in my php.ini, and there is NO ob_start in ANY of this new framework (i just copied the old, and am modifying it, but i already took out the buffering).

 

Nope, that's not it. I changed it to 0 and i'm still not getting any errors. I'm waiting for the "You already started sending output, you can't send a header now" kind of message. Yes, i remembered to restart apache after modifying php.ini.

 

Thanks.

Do you even know what output buffering is?

 

Make sure error reporting is on at the beginning of your scripts and check again.

ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

 

You are most likely not sending a problematic header after content if you turn caching off and check this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.