How to disable PHP + MySQL error formatting

How to disable PHP error formatting to get just plain text? This should also affect MySQL related functions.

I want to get plain text, instead of a structured HTML error message.

UPDATE

AS Artefact2 suggested I change the php.ini file, so

ini_set('html_errors', false); 

does the trick if I need it in real time.

+6
source share
1 answer
+7
source

Source: https://habr.com/ru/post/916373/


All Articles