PHP run appears notice:use of undefined constant solution notice:use of undefined constant all_ps-assumed ' all_ps ' in E:\SERVER\VH osts\www.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
Notice: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
Access to the site will appear a lot like the following tips, but can display and run normally
Notice:use of undefined constant ctbtitle-assumed ' ctbtitle ' in d:\ctb1.5\ctb\include\config.php on line 23 ...
B Answer: These are PHP hints rather than errors, PHP itself does not need to declare variables in advance to be used directly, but there is a hint about 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
Switch
error_reporting = E_all & ~e_notice
There's another way.
On each file header, add the
error_reporting (0); It's not easy, but it solves the problem.
PHP run appears notice:use of undefined constant solution