Volcano T. answered 05/28/19
Programming / SysAdmin / DBA
you need to understand the concept of the "document root" of the web-server.
nothing to do with PHP really filesystem path. especially try to avoid using real path, for security issues.
the PHP file rendered by your web-server (say, apache, nginx, iis, tomcat, lighttpd) is jailed to directories or subdirectories beneath the "document root" which is access to public (under user www, group www usually).