====== Get path info ====== * [[http://php.net/manual/en/function.pathinfo.php|pathinfo()]] - retrieve info from URL * [[http://php.net/manual/en/function.getcwd.php|getcwd()]] - get working directory $_SERVER['DOCUMENT_ROOT'] // www base path echo $_SERVER['DOCUMENT_ROOT'] . $_SERVER['REWRITEBASE'] . '
';