CodeIgniter Forums
detecting if content was sent prior to a line in a php file in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: detecting if content was sent prior to a line in a php file in codeigniter (/showthread.php?tid=35107)



detecting if content was sent prior to a line in a php file in codeigniter - El Forum - 10-19-2010

[eluser]Unknown[/eluser]
m trying to change the way the error files from system/application/errors work by logging the errors and showing a 500 page instead. However, sometimes the error occurs in the middle of a page and i need to display only the error page.

I've tried to check if the headers are sent and cleaning the output buffer but it didn't work. Any sugestions?