Why can't I use "/" in a php file to access files in the root directory of the website, but html can?
大家讲道理
大家讲道理 2017-05-16 13:04:45
0
1
339

1. When I wrote a demo, I found that there is no way to use "/" to introduce files in the root directory of the website, but it can be done in html. Please give me an answer.

< /p>

< /p>

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
phpcn_u1582

In php, /代表的是文件系统的根目录,而非网站根目录.
在html中, /represents the root directory of the website, not the root directory of the file system.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template