Friday, March 30, 2012

PHP: stop displaying error messages

Share at Facebook

i was making a REST api service using php for my clients. During an RSA encrypting processing, a third party library was showing error messages. It was simply garbling my xml outputs. So i need a way to stop the php to display error on page.

ini_set('display_errors', 0);

it worked like a charm for me. This can be resolved from the conf file of apache or php i think. But as it solved for me, i didn't look for that solution.

1 comment:

andrew Hudson said...

Great post, I'm going to forward this onto our designer. He needs to read this post (no doubt). Thanks for sharing.