PHP运行出现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 Notice: Undefined index: EaseTempl
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: EaseTempl
方法一: 首先打开apache中conf下的http.conf文件打开虚拟主机的注释:如下去掉第二行前面的#即可 # Virtual hosts # Include conf/extra/httpd-vhosts.conf 再打开conf目录下的extra目录中的httpd-vhosts.conf文
后来发现,原来又是Apache没配置 好,是apache的mod_authz_host模块在起控制作用。 1.如果不启用vhosts 只需修改 httpd.conf 默认Directory节如下,注意红色部分,表示目录/usr/local/apache/htdocs允许所有 主机访问 实现代码如下:
1.Apache2.2\conf\httpd.conf中释放: Include conf/extra/httpd-vhosts.conf(去掉前面的#) 2.httpd.conf中增加 #项目文件夹DWM目录,注意不要使用中文定义目录与文件夹 # # Possible values for the