Welcome Guest, Not a member yet? Register   Sign In
Redirect Errors
#1

[eluser]Unknown[/eluser]
Hi Community,

Is it possible to write a class/function/whatever to fetch all php errors, that occur on my site, and email/log them (i want to write code to define what happens with them) and redirect the users to a defined site?


Thank you

Bernd
#2

[eluser]Ochetski[/eluser]
You can override 404 errors with routes:

$route['404_override'] = 'class/method';

To change other erros you can try using an MY_Exceptions.php file to make errors work as you wish.




Theme © iAndrew 2016 - Forum software by © MyBB