I use php and mysql for my pear package projects.
I want to track errors in my programs.
is there any way to track the error in the pear or php5 package.
Suppose any error or warning is generated in my program, so I want to track this error and
store in the database.
anyone has an idea about this.
early.
Do not store errors in the database. many errors are related to the database. what would you do with it?
PHP , . log_errors ini , , error_log, PHP -
log_errors
error_log
trigger_error(), ,
trigger_error()
mysql_error($sql); if(!$sql) trigger_error(mysql_error()." in ".$sql);
, , .
: , , , . . , , , .
:
Exceptiontrap PHP-, .
, xdebug. .
, , Zend_Log, . , .
, Firebug Firephp. print_r .
print_r
Sentry. Python, PHP. , , , , / .
, , API , Exceptiontrap, Sentry, Raygun, Airbrake , , , FirePHP,
Source: https://habr.com/ru/post/1749185/More articles:3-cnf-sat with a twist question - computer-scienceHow to refer to a class that implements a specific interface? - c #how to show square root symbol in image using gd library - phpWindows DDK development with MinGW? - c ++How to use email addresses with special characters such as Ø - c #Компонент графического интерфейса GUI для графического файла - javaNHibernate Bidirectional Multiuser Relationship Caching Problem - nhibernateHow to connect StaticListableBeanFactory using ClassPa thanksmlApplicationContext? - javaExtended SQL query with many joins - sqlis part of the curl of the original php installation? - phpAll Articles