Many PHP debugging technologies can save a lot of time in coding. An effective but basic debugging technique is to open an error report. Another slightly more advanced technique involves the use of print statements to help precisely identify more
Open PHP debugging. 1. the involved configuration file: etcphp5apache2php. ini2. specific line: display_errorserror_reporting3. remember to restart the service PHP. the error report php. ini file contains many configurations. 1. the involved
Usage of the error_reporting () function in PHP (modifying PHP blocking errors ). I encountered a problem when I learned the CI framework today: APHPErrorwasencounteredSeverity: NoticeMessage: Undefinedvariable: The user usually outputs an undefined
1. the involved configuration file:/etc/php5/apache2/php. ini2. specific line: display_errorserror_reporting3. remember to restart the service. The PHP error report file contains many configuration settings. You should have set your php. ini file
Generally, if an undefined declared variable is output in the default PHP file, no error is reported, but an error is reported in the codeigniter framework, this is inconvenient for "lazy people" who want to integrate and add and modify pages. as a
: This article describes how to use the error_reporting () function in PHP (modifying PHP blocking errors). If you are interested in PHP tutorials, refer to it. Syntax
Error_reporting (report_level)
If the level parameter is not specified, the
In Windows: Why do multiple errors occur in a program originally running normally in php430 in 431? the general prompt is: Notice: Undefinedvarialbe: variable name. for example, the following code is displayed:
In Windows: for a program that runs
I. Prerequisites
We need a web server to parse the pages created with PHP and display them to the browser. Apache2 is used in this article. However, any web server can meet the requirements.
To use some Debugging techniques
1. configuration files involved:
/Etc/PhP5/apache2/PHP. ini
2. Specific rows:
Display_errors =Error_reporting =
3. Remember to restart the service.
PHP Error ReportThe PHP. ini file contains many configuration settings. You should have set your
Explanation of php error shielding error_reporting. In Windows: the program that was originally running normally in php Tutorial 4.3.0 has multiple errors in Section 4.3.1. the general prompt is: Notice: Undefinedvarialbe: variable name. for example,
In Windows: The program that was originally running normally in php tutorial 4.3.0, why did multiple errors be reported in 4.3.1? The General prompt is: Notice: Undefined varialbe: variable name.For example, the following code is available:Copy the
The original developer at the data abstraction layer of a new PHP Data Object (PDO) briefly introduces this abstraction layer, focusing on running with Oracle.
PHP: 5.0 requiredOther required: Oracle 8 or later client libraryDownload PDO for Oracle (
In Windows: The program that was originally running normally in php Tutorial 4.3.0, why did multiple errors be reported in 4.3.1? The general prompt is: Notice: Undefined varialbe: variable name.For example, the following code is available:Copy the
I encountered a problem when I learned the CI framework today:A php Error was encounteredSeverity: NoticeMessage: Undefined variable: userGenerally, if an undefined declared variable is output in the default PHP file, no error is reported, but an
Learn how to use error_reporting
The usage frequency of error_reporting in php programming is clear to everyone. This article introduces the usage of error_reporting for your reference. If the level parameter is not specified, the current
Error_reporting () sets the PHP error level and returns the current level.Syntax
error_reporting(report_level)
If the level parameter is not specified, the current error level is returned. The following items are possible values of level:
1 e_error2
I encountered a problem when I learned the CI framework today:
A php Error was encounteredSeverity: Notice
Message: Undefined variable: user
Generally, if an undefined declared variable is output in the default PHP file, no error is reported, but
Common php Error Report Type: E_Fatal? E_WarringE_Notice: 1. php. ini file? Set the error_reporting value to the corresponding error type and display all as E_ALL. (You can use a logical connector? | Or ~ Not ). 2. specify in the php file (with a
How to Debug php programs? Gedit + Mozilla Firefox
Use the above Notepad + browser for debugging.
If a part of the php program fails, the results of the entire program may not be displayed in the browser.
In this way, it is difficult to
Set up EclipsePHP development environment to build a PHP development environment: & nbsp; 1. prepare and install the following software: & nbsp; MySQL5.1.30: http://dev.mysql.com/down build Eclipse PHP development environment
Build a PHP development
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.