有一个文件的相对路径和绝对路径。但有些着作有时让我困惑:关于文件路径
/a/b/c.php //relative document root
./a/b/c.php //what does this mean? equals to '/a/b/c.php' or a/b/c.php?
a/b/c.php //relative to current directory
../a/b/c.php //parent folder relative to current directory
/../a/b/c.php //what does this mean? parent folder of document root?
有没有其他写作方法呢?
谢谢。
“/../a/b/c.php表示进入根目录,然后向上一个”上一个意味着转到根目录的父文件夹? – hon 2011-06-07 06:43:50
是的,去根的父母,然后文件夹A,然后文件夹B,然后文件c.php – Jon 2011-06-07 06:47:24
好的,非常感谢。 – hon 2011-06-07 06:50:45