ZertosseHed
New Member
If it's \[code\]Path_To_DocumentRoot/a/b/c.php\[/code\],should always be \[code\]/a/b\[/code\].I use this:\[code\]dirname($_SERVER["PHP_SELF"])\[/code\]But it won't work when it's included by another file in a different directory.EDITI 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.http://stackoverflow.com/questions/1240462/php-convert-file-system-path-to-url