protected function _findRelativePath($from, $to)
    {
        $path = dirname($from);
        $to = str_replace(COMPOSER_ROOT.DIRECTORY_SEPARATOR, '', $to);

        while ($path != COMPOSER_ROOT) {
            $path = dirname($path);
            $to = '..'.DIRECTORY_SEPARATOR.$to;
        };

        return $to;
    }
protected function _findRelativePath($from, $to)
    {
        $path = dirname($from);
        $to = str_replace(COMPOSER_ROOT.DIRECTORY_SEPARATOR, '', $to);

        while ($path != COMPOSER_ROOT) {
            $path = dirname($path);
            $to = '..'.DIRECTORY_SEPARATOR.$to;
        };

        return $to;
    }
protected function _findRelativePath ( $ from , $ to ) { $ path = dirname ( $ from ) ; $ to = str_replace ( COMPOSER_ROOT . DIRECTORY_SEPARATOR , '' , $ to ) ; while ( $ path != COMPOSER_ROOT ) { $ path = dirname ( $ path ) ; $ to = '..' . DIRECTORY_SEPARATOR . $ to ; } ; return $ to ; }
Find from to to

@param string $from
@param string $to
Find from to to