问题描述
在一些文档中,我已经得到了写入SERVER_PATH \主题的命令
的指示当我从_php中检查_SERVER [DOCUMENT_ROOT]时信息,它是
/storage/content/75/113475/frilansbyran.se/public_html
这个呈现的课程
/ storage / content / 75 / 113475 / frilansbyran.se / public_html\theme\
这对我来说真的很奇怪,我应该使用什么? (unix-server)
C:\Windows\System32
在Unix系统中通常使用正斜杠ala:
$ b $ pre $ / $ / $ / $ / $ / $ /如果你使用的是Unix服务器,我会坚持使用正斜杠(/),虽然很多时候在实践中系统足够聪明,可以互换使用。
In some documentation, I have gotten the instructions to writeSERVER_PATH\theme\
When I check _SERVER["DOCUMENT_ROOT"] from php info, it's/storage/content/75/113475/frilansbyran.se/public_html
this renders ofcourse/storage/content/75/113475/frilansbyran.se/public_html\theme\
this looks really weird to me what's the difference anyway wich should i use? (unix-server)
Using backslashes is typically the windows way of paths, eg:
C:\Windows\System32
Forward slashes are usually used in Unix systems ala:
/usr/home/jdoe
If you are using a Unix-server I would stick to the forward slashes (/'s), though many times in in practice the system is smart enough to use either interchangeably
这篇关于服务器路径/ vs \的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!