服务器路径/ vs \ [英] server path / vs \

查看:360
本文介绍了服务器路径/ vs \的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一些文档中,我已经得到了写入
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 write SERVER_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 \的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆