There are a few problems in the process of learning CI framework today:
A PHP Error was encountered
Severity:notice
message:undefined Variable:user
Generally in the default normal php file output an undefined declaration of the variable is not
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
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
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
: 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
The default setting for blocking notice warnings in PHP default settings notice
The default setting for PHP is to display the notice warning prompt, which causes the page to not display properly. You have a variable that is not defined and is used
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
In many cases, php files may encounter some very difficult-to-troubleshoot errors, such as output of large white pages. It is possible that the PHP error level shields some non-fatal errors, resulting in no error prompt. Therefore, understanding and
Php error reports enable detailed implementation. Php Tutorial error report enable detailed implementation definition and usage error_reporting () set the php error level and return the current level. Syntax: error_reporting (report_level) if the
Compiling the source package requires./configure then compile a. so fileOne less error packetInstall packageNormal displayThe LS directory has a./configure fileQuerying module LocationsEditing a configuration fileEditing a configuration fileIncrease
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.