Solution for Notice: Useofundefinedconstant in php
Php program prompts Notice: Use of undefined constant ALL_PS-assumed 'all _ PS' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 50 The php program prompts Notice: Use of undefined constantNotice: Use of undefined constant ALL_PS-assumed 'all _ PS' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 50 Notice: Undefined index: EaseTemplateVer in E: \ Server \ vhosts \ www.lvtao.net \ libs \ template. core. php on line 51 Notice: Use of undefined constant uid-assumed 'uid' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 54 Notice: Undefined index: uid in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 54 Notice: Use of undefined constant cuid-assumed 'cuid' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 55 Notice: Undefined index: cuid in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 55 Notice: Use of undefined constant shell-assumed 'shell' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 56 Notice: Undefined index: shell in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 56 Notice: Use of undefined constant cshell-assumed 'cshell' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 57 Notice: Undefined index: cshell in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 57 Notice: Use of undefined constant username-assumed 'username' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 58 Notice: Undefined index: username in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 58 Notice: Use of undefined constant cusername-assumed 'cusername' in E: \ Server \ vhosts \ www.lvtao.net \ global. php on line 59 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 10 Notice: Use of undefined constant id-assumed 'id' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 14 Notice: Use of undefined constant content-assumed 'content' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 16 Notice: Use of undefined constant content-assumed 'content' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 16 Notice: Use of undefined constant description-assumed 'description' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 17 Notice: Use of undefined constant description-assumed 'description' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 17 Notice: Use of undefined constant provinceid-assumed 'provinceid' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 18 Notice: Use of undefined constant cityid-assumed 'cityid' in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 19 Notice: Use of undefined constant hy-assumed 'Hy 'in E: \ Server \ vhosts \ www.lvtao.net \ companyjob. php on line 20 Notice: Undefined variable: content in E: \ Server \ vhosts \ www.lvtao.net \ libs \ template. core. php on line 557 A large number of prompts similar to the following will appear on the website, but Notice: Use of undefined constant ctbTitle-assumed 'ctbtitle' in d: \ ctb1.5 \ ctb \ include \ config can be displayed and run normally. php on line 23... These are PHP prompts rather than errors. PHP itself can be directly used without declaring variables in advance, but there will be prompts for UN-declared variables. Generally, when a website is a formal website, it will turn off the prompt and even the error message. Search for PHP. ini: error_reporting = E_ALL and change it to error_reporting = E_ALL &~ E_NOTICE: In addition, there is a more abnormal method to add error_reporting (0) to each file header. it is not recommended to shield any error messages. |