报错如下,请问是怎么意思?
Warning: The magic method __get() must have public visibility and cannot be static in D:\xampp\htdocs\class\Page.php on line 41Notice: A session had already been started - ignoring session_start() in D:\xampp\htdocs\index.php on line 13Notice: Use of undefined constant g_S_name - assumed 'g_S_name' in D:\xampp\htdocs\index.php on line 14Notice: Undefined index: g_S_name in D:\xampp\htdocs\index.php on line 14php
Warning: The magic method __get() must have public visibility and cannot be static in D:\xampp\htdocs\class\Page.php on line 41Notice: A session had already been started - ignoring session_start() in D:\xampp\htdocs\index.php on line 13Notice: Use of undefined constant g_S_name - assumed 'g_S_name' in D:\xampp\htdocs\index.php on line 14Notice: Undefined index: g_S_name in D:\xampp\htdocs\index.php on line 14php
2 上述错误有warning输出,与session_start()之前不能输出数据冲突。
3 g_S_name当常量输出了。可能与未加$引起的。
4 未定义的g_S_name索引。
我是用XAMPP安装的,APACHE PHP MYSQL环境。
下面的三个错误,可以通过errro_reporting(E_ALL & ~E_NOTICE);来不显示。