On Sat, Jan 5, 2013 at 3:08 PM, Pedro Fortes Gallego <[email protected]> wrote: > > Is there any form to catch php fatal errors?
Have a look at register_shutdown_function() > i heard that if you left a blank space after ?> tag, it can causes a fatal > error. More likely it will cause the dreaded "Headers already sent" warning. That's because of the way that PHP buffers output. The charaters after the closing tags will be sent to the client immediately, so that when PHP tries to send the normal page headers out afterwards it will cause problems. The best solution for that is to leave out the ?> in all your PHP files; it's not required. The interpreter will then deal with it correctly. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
