<?php
// thx to comment @ php.net: http://www.php.net/manual/en/function.dirname.php#70709
/*
function GetRelativePath($path)
{
    $npath = str_replace('\\', '/', $path);
    return str_replace(str_replace('\\', '/', getcwd()."/"), '', $npath);
}
*/
?> 