Jump to content

Archived

This topic is now archived and is closed to further replies.

onlyican

Error reporting

Recommended Posts

This is going to be the last post from me for a while, well I hope

I have just about finished this website
I have a function running, so everytime a MySQL query fails, the info is stored in a text document

But how can I do the same thing every time a php error shows

Fatel Errors and Normal Errors

Any suggestions

Share this post


Link to post
Share on other sites
Have a look at [url=http://php.net/set_error_handler]set_error_handler()[/url] and [url=http://php.net/error_log]error_log()[/url].

Share this post


Link to post
Share on other sites
ok, but error_log requires the function to be called

For a fatel error, the error_log will not execute

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.