static function urlPathEncode($path) {
        $path = self::normalize($path);
        $encoded = "";
        foreach (explode("/", $path) as $dir)
            $encoded .= rawurlencode($dir) . "/";
        $encoded = substr($encoded, 0, -1);
        return $encoded;
    }
static function urlPathEncode($path) {
        $path = self::normalize($path);
        $encoded = "";
        foreach (explode("/", $path) as $dir)
            $encoded .= rawurlencode($dir) . "/";
        $encoded = substr($encoded, 0, -1);
        return $encoded;
    }
static function urlPathEncode ( $ path ) { $ path = self :: normalize ( $ path ) ; $ encoded = "" ; foreach ( explode ( "/" , $ path ) as $ dir ) $ encoded .= rawurlencode ( $ dir ) . "/" ; $ encoded = substr ( $ encoded , 0 , - 1 ) ; return $ encoded ; }
Encode URL Path
@param string $path
@return string
Encode URL Path