Error reporting in PHP

Ads
 

Error reporting in PHP

Hi,

I am developing a complex application in PHP. How to report errors and warning messages in my PHP applications?

What is the easiest way to enable error reporting in PHP based applications? I should be able to easily remove the error reporting code before moving my code on production environment.

Thanks

View Answers

November 22, 2013 at 2:26 PM

Hi,

Error reporting is very important while developing your applications. If your code reports the error correctly you can easily debug and fix your code.

You can easily turn on the error reporting to find what is happening in your code and which part is causing the issue. This way it is easy to fix your code.

Check our tutorial for learning how to enable error reporting in PHP code.

Thanks

Ads









Related Tutorials/Questions & Answers:
Error reporting in PHP
is the easiest way to enable error reporting in PHP based applications? I should... error reporting in PHP code. Thanks...Error reporting in PHP  Hi, I am developing a complex application
ftp connection error php
ftp connection error php  Getting a ftp connection error in php
Advertisements
ModuleNotFoundError: No module named 'django-form-error-reporting'
ModuleNotFoundError: No module named 'django-form-error-reporting'  ...: No module named 'django-form-error-reporting' How to remove the ModuleNotFoundError: No module named 'django-form-error-reporting' error? Thanks
ModuleNotFoundError: No module named 'google-cloud-error-reporting'
ModuleNotFoundError: No module named 'google-cloud-error-reporting'  ...: No module named 'google-cloud-error-reporting' How to remove the ModuleNotFoundError: No module named 'google-cloud-error-reporting' error
ModuleNotFoundError: No module named 'stackdriver-error-reporting'
ModuleNotFoundError: No module named 'stackdriver-error-reporting'  ...: No module named 'stackdriver-error-reporting' How to remove the ModuleNotFoundError: No module named 'stackdriver-error-reporting' error? Thanks
Error using SoapClient() in PHP
Error using SoapClient() in PHP  I'm trying to access WSDL(Web Service Definition Language) file using SoapClient() of PHP. I found that WSDL file... parameter and active SSL on my server, still I'm getting an error. Here is the code I'm
PHP Error handling
Ending Script error reporting PHP sends an error log to the servers logging...PHP Error handling Your application must have an error handling codes. Without it, it looks very unprofessional. PHP have following error handling methods
PHP Error Handling Functions
. Given are the types of PHP Error Handling Functions: die() method setting custom error handler and error triggering error reporting In PHP die( ) method... can also write your own error handling functions in PHP. There is a bit
PHP Error handling
PHP Error handling: PHP provides so many techniques to handle error, if error occurs an error message is send to the browser. Error handling should...: Example: <?php $var=mysql_connect("localhost","
How to Checking Syntax Error in PHP from Command Line
How to Checking Syntax Error in PHP from Command Line  Checking Syntax Error in PHP from Command Line   PHP allows you to check your script... check this: http://www.phpzag.com/checking-syntax-error-in-php-from-command-line
Fatal error: Call to undefined function session_register() in .php file
Fatal error: Call to undefined function session_register() in .php file  I upgraded the PHP and MySQL and in my application following error is coming: Fatal error: Call to undefined function session_register() in ...php file
php
php   what is php   PHP Tutorials
php
php  what is php
php
php using javasript  how to set timer in php using javasript
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  show the constructor overloading in php
PHP
PHP  How to work in drupal with PHP
ModuleNotFoundError: No module named 'reporting'
;reporting' error? Thanks   Hi, In your python environment you... python library, ModuleNotFoundError: No module named 'reporting' error...ModuleNotFoundError: No module named 'reporting'  Hi, My Python
php
php  what is php   PHP is one of the most used open source server-side scripting language, which runs on almost all the platform. PHP... and Solaris. To know more about PHP, Visit Here
php
php  how to write a program in php to create pdf file
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
jasper reporting
jasper reporting  what is jasper reporting
php
php  plz tell me code for PHP SQL Insert,delete,update,view is used to insert the record from HTML page to Mysql database using in single PHP form
php
php  retrieve data from mysql in php   Please visit the following links: http://www.roseindia.net/sql/mysql-table/mysql-php-select.shtml http://www.roseindia.net/sql/mysql-example/select-where.shtml
php
php  How to catch a image and link click counters using Ajax php can any one help me
php
php  how to set email remainder in php?can you help me pls
PHP
PHP  I want to create Calendar Event in PHP. Could u help me
PHP
PHP  How to check whether a username exists on a website using php and cURL and not MySQL
php
Write a simple PHP program that display the days of week as per the system date using switch case statement.  Write a simple PHP program that display the days of week as per the system date using switch case statement
PHP
PHP  I would love to do PHP project with the title of "Hospital Management System". I want to know how to make validation using jquery

Ads