php - How to use tilde with `file_get_contents` to read file from home directory
one text
Solution:
Answer for your question is here https://stackoverflow.com/a/1894954/2686510
In short, use $_SERVER['HOME']
variable to access current user home folder.