Path_To_DocumentRoot/a/b/c.php,should always be
I use this:
But it won't work when it's included by another file in a different directory.
I need a relative path to document root .It's used in web application.
I find there is another question with the same problem,but no accepted answer yet.
PHP - Convert File system path to URL