Home  >  Article  >  Backend Development  >  php 怎么得到一个人的homedir 路径

php 怎么得到一个人的homedir 路径

WBOY
WBOYOriginal
2016-06-13 12:42:06810browse

php 如何得到一个人的homedir 路径。
比如marry登录网页,我要看marry的 home dir下是否有一个文件"test":
我用这个不好使:
if (file_exists("~marry/test"))

只有给绝对路径才行,请大侠帮帮我,如何得到这个人的homedir?
或者有什么办法访问登录者hoemdir下的文件。

非常谢谢您的帮忙。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn