Jump to content

Recommended Posts

Hi all, bit of an interesting question in regards to all the PHP error codes knwo so weel to us :-D

Is there anyway to set PHP to send all error codes to a DB to be stored? or a string that then can be sent to a DB, by error codes I mean all the PHP error codes eg Fata Error has occured on line # of file ###

 

If anyone as any form of a suggestion or know how, please let me know, it would be much appreciated

Link to comment
https://forums.phpfreaks.com/topic/195298-error-codes/
Share on other sites

PHP has it's own error log if this will solve your problem. Check out this information

 

http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html

 

Otherwise you will have to create error handlers for each error where you specify what the error is and save it to the database like you would anything else.

Link to comment
https://forums.phpfreaks.com/topic/195298-error-codes/#findComment-1026305
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.