PHP appears notice:use of undefined constant workaround

Source: Internet
Author: User
PHP program tips Notice:use of undefined constant notice:use of undefined constant all_ps-assumed ' all_ps ' in E:\Server\vhosts\ Www.lvtao.net\global.php on line 50

PHP program tips Notice:use of undefined constantnotice:use of undefined constant all_ps-assumed ' all_ps ' in E:\Server\vhosts\w ww.lvtao.net\global.php on line-notice:undefined index:easetemplatever in E:\Server\vhosts\www.lvtao.net\libs\ template.core.php on line Wuyi notice:use of undefined constant uid-assumed ' uid ' in E:\Server\vhosts\www.lvtao.net\globa l.php on line notice:undefined index:uid in E:\Server\vhosts\www.lvtao.net\global.php on line Wu Notice:use of undef INED constant cuid-assumed ' cuid ' in E:\Server\vhosts\www.lvtao.net\global.php on line-notice:undefined Index:cuid In E:\Server\vhosts\www.lvtao.net\global.php on line notice:use of undefined constant shell-assumed ' shells ' in E:\Se rver\vhosts\www.lvtao.net\global.php on line, notice:undefined Index:shell in E:\Server\vhosts\www.lvtao.net\ global.php on line notice:use of undefined constant cshell-assumed ' Cshell ' in E:\Server\vhosts\www.lvtao.net\global . PHP on line notice:undefined index: Cshell in E:\Server\vhosts\www.lvtao.net\global.php on line notice:use of undefined constant username-assumed ' user Name ' in E:\Server\vhosts\www.lvtao.net\global.php-line-notice:undefined index:username in E:\SERVER\VHOSTS\WWW.L vtao.net\global.php on line notice:use of undefined constant cusername-assumed ' cusername ' in E:\SERVER\VHOSTS\WWW.L vtao.net\global.php on line-notice:undefined index:cusername in E:\Server\vhosts\www.lvtao.net\global.php on line 59 Notice:use of undefined constant id-assumed ' id ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line Notice:us E of undefined constant id-assumed ' id ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:use of undef INED constant content-assumed ' content ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:use of undef INED constant content-assumed ' content ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:use of undef INED constant Description -Assumed ' description ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line + notice:use of undefined constant des Cription-assumed ' description ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:use of undefined cons Tant provinceid-assumed ' Provinceid ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:use of Undefine D constant cityid-assumed ' Cityid ' in E:\Server\vhosts\www.lvtao.net\companyjob.php to line notice:use of undefined Constant hy-assumed ' hy ' in E:\Server\vhosts\www.lvtao.net\companyjob.php on line notice:undefined variable:content In E:\Server\vhosts\www.lvtao.net\libs\template.core.php on line 557

Access to the site will appear a lot like the following hints, but can display and run normally notice:use of undefined constant ctbtitle-assumed ' ctbtitle ' in D:\ctb1.5\ctb\include\con fig.php on line 23 ...

These are PHP hints rather than errors, and PHP itself does not need to declare variables in advance to be used directly, but is prompted for undeclared variables. Generally as a formal website will be the prompt to turn off, even the error message is also turned off

Ways to turn off PHP hints Search php.ini:error_reporting = E_all to: error_reporting = E_all & ~e_notice In addition, there is a more perverted way to add the header of each file: Error_r Eporting (0); Block any error hints, not recommended for use.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.