function limitPath($file)
    {
        $x = explode('/', $file);
        $l = count($x);
        return ($l>1) ? $x[$l-2] . '/' . $x[$l-1] : $file;
    }
function limitPath($file)
    {
        $x = explode('/', $file);
        $l = count($x);
        return ($l>1) ? $x[$l-2] . '/' . $x[$l-1] : $file;
    }
function limitPath ( $ file ) { $ x = explode ( '/' , $ file ) ; $ l = count ( $ x ) ; return ( $ l > 1 ) ? $ x [ $ l - 2 ] . '/' . $ x [ $ l - 1 ] : $ file ; }
limit the path for security reasons

@param string $file
limit the path for security reasons