How does php get a person's homedir path. For example, if you log on to the webpage with marry, check if there is a file "test" in marry's & nbsp; home & nbsp; dir: if & nbsp; (file_exists ("~ Marry/test ") only the absolute path can be provided. please help me, how can php get a person's homedir path.
For example, if you log on to the webpage with marry, check whether there is a file "test" in the home dir of marry ":
I am using this to make it difficult:
If (file_exists ("~ Marry/test "))
Only the absolute path is required. please help me. how can I get this person's homedir?
Or is there any way to access the files under the publisher's hoemdir.
Thank you for your help. Share:
------ Solution --------------------
Do not understand what the landlord means
------ Solution --------------------
The database must have a system Path record mapped to the user. just read it.
------ Solution --------------------
Run the shell command using the exec () function in php to splice the command into the user path.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service