In Classic ASP I use the statement below at the top of the page:
on error resume next
You will continue to load the page if there is an error in programming ASP on the entire page , without displaying any error messages.
If I want to send a message or stop page processing, I get the error like this:
if Err.Number <> 0 then
response.write("Estamos com problemas técnicos")
response.End()
end if
If I do not want to stop loading the page, I do not do the above.
Is there some kind of similar statement in PHP that has the same global effect, that is, that the page loads normally "bypassing" errors without displaying any error by loading the entire page?