这是一个创建于 3543 天前的主题,其中的信息可能已经有所发展或是发生改变。
windows8系统,apache+mysql+php网站,真实文件放在 E:\www
用mklink建立链接:
mklink /j D:\www E:\www
httpd.conf设置网站目录:
DocumentRoot "D:\www"
在该网站里用dirname(__FILE__)获取到的路径是 E:\www,
请问怎样才能让dirname(__FILE__)获取到的是D:\www呢? 是不是我的mklink命令写错了?
1 条回复 • 2015-01-31 21:24:16 +08:00
|
|
1
cnwggu 2015-01-31 21:24:16 +08:00
__FILE__ The full path and filename of the file with symlinks resolved. If used inside an include, the name of the included file is returned.
|