Is it possible, and how to bypass the fatal error and still load the rest of the php page, I have a script the logs all errors on sql database, and I want that my php index, that is mostly html, still loads, and hide the fatal error.
this is the code that throws a fatal error:
try {
$queryConfiguracao = sqlQuery("SELECT * FROM definicoes");
$online = mysql_result($queryConfiguracao, 0);
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
And the error that is that i removed the function in cause:
Fatal error: Call to undefined function sqlQuery()
but this still doesn't load the page