Open GoogleCodeExporter opened 9 years ago
问题:添加自动识别网站安装目录,无论用户是否安装在根�� �录都能正确运行。 方案: 1.在 smpss/global.php 其中添加: define("WEB_ROOT",str_replace("/index.php","",$_SERVER['SCRIPT_NAME'])); 2.smpss/app/base/Constant.class.php 中 修改配置项: const ROOT_DIR = ""; //程序相对网站根目录的目录 为空表示根目录 注意末尾不要加“/“ 为: const ROOT_DIR = WEB_ROOT;
Original issue reported on code.google.com by linso...@gmail.com on 25 May 2012 at 3:50
linso...@gmail.com
感谢你的建议。。这样的做法不是特别得好 我会考虑在安装的时候直接写入配置
Original comment by 5709...@gmail.com on 31 May 2012 at 3:11
5709...@gmail.com
Original issue reported on code.google.com by
linso...@gmail.com
on 25 May 2012 at 3:50