【发布时间】:2012-02-23 14:07:12
【问题描述】:
我正在尝试找到一种方法使 include_once(); 路径从开始目录开始,然后找到路径,例如而不是../../../path/to/file,我将拥有/path/to/file。如果我这样做 /path/to/file 它说没有这样的文件或目录,这是我的直接代码
<?php
include_once("/assets/page_assets.php");
?>
【问题讨论】:
-
path start from the beginning directory来自网络服务器的根目录?/path/to/file是文件系统根目录的路径!