search

Home  >  Q&A  >  body text

Why can't I use "/" in a php file to access files in the root directory of the website, but html can?

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>

大家讲道理大家讲道理2848 days ago344

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 13:06:45

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

    reply
    0
  • Cancelreply