|
Posted by AlexVN on 11/01/06 21:59
On Nov 1, 7:04 pm, "Pablito" <pabl...@nospam.com> wrote:
> Hi at all
> still now to write into my server error log I used .htaccess that when
> intercept a server error call a php page that write into my serverlog.txt a
> line containing all datas about current error and after redirect the user to
> an other page.
> Somone tell me that this it is not the best way but the best way is to
> intercept server errors directly ftom php pages
> I 'ld like to know what is truely the best way?
> Regards
> Pab
Read http://php.net/register_shutdown_function and
http://php.net/set_error_handler. I believe, this is exactly what you
need.
Sincerely,
Alexander
http://www.alexatnet.com/ - PHP/ZendFramework/Ajax blog
Navigation:
[Reply to this message]
|