【发布时间】:2014-04-28 08:20:19
【问题描述】:
如何访问子域文件夹之外的文件夹。
例如,我的域是localhost,我有一个子域m.localhost。他们的文件夹是:
Server Root:
/cdn/
/contents/
/mobile/
.htaccess
而文件夹/mobile/是我的m.localhost的根目录。从m.localhost,如何使用PHP 访问/contents/ 目录及其内容?
$_SERVER['DOCUMENT_ROOT'] 只选择子域目录根目录。
【问题讨论】:
标签: php apache subdomain document-root