How to turn off PHP error formatting for getting only plain text? This should also affect MySQL related functions.
I want to get plain text, instead of structured HTML error message.
UPDATE
AS Artefact2 suggested I need to modify php.ini file, so
ini_set('html_errors', false);
does the trick if I need it in realtime.
http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
Just set html_errors to "Off" in your php.ini.