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