function fromAny($info)
    {
        if (is_string($info) && file_exists($info) && strlen($info) < 255) {
            $tmp = substr($info, -4);
            if ($tmp == '.xml') {
                $info = $this->fromXmlFile($info);
            } else {
                $fp = fopen($info, "r");
                $test = fread($fp, 5);
                fclose($fp);
                if ($test == "<?xml") {
                    $info = $this->fromXmlFile($info);
                }
            }
            if (PEAR::isError($info)) {
                require_once 'PEAR.php';
                return PEAR::raiseError($info);
            }
        }
        if (is_string($info)) {
            $info = $this->fromXmlString($info);
        }
        return $info;
    }
function fromAny($info)
    {
        if (is_string($info) && file_exists($info) && strlen($info) < 255) {
            $tmp = substr($info, -4);
            if ($tmp == '.xml') {
                $info = $this->fromXmlFile($info);
            } else {
                $fp = fopen($info, "r");
                $test = fread($fp, 5);
                fclose($fp);
                if ($test == "<?xml") {
                    $info = $this->fromXmlFile($info);
                }
            }
            if (PEAR::isError($info)) {
                require_once 'PEAR.php';
                return PEAR::raiseError($info);
            }
        }
        if (is_string($info)) {
            $info = $this->fromXmlString($info);
        }
        return $info;
    }
function fromAny ( $ info ) { if ( is_string ( $ info ) && file_exists ( $ info ) && strlen ( $ info ) < 255 ) { $ tmp = substr ( $ info , - 4 ) ; if ( $ tmp == '.xml' ) { $ info = $ this -> fromXmlFile ( $ info ) ; } else { $ fp = fopen ( $ info , "r" ) ; $ test = fread ( $ fp , 5 ) ; fclose ( $ fp ) ; if ( $ test == "<?xml" ) { $ info = $ this -> fromXmlFile ( $ info ) ; } } if ( PEAR :: isError ( $ info ) ) { require_once 'PEAR.php' ; return PEAR :: raiseError ( $ info ) ; } } if ( is_string ( $ info ) ) { $ info = $ this -> fromXmlString ( $ info ) ; } return $ info ; }
Parse channel information from different sources

This method is able to extract information about a channel
from an .xml file or a string

@access public
@param  string Filename of the source or the source itself
@return bool
Parse channel information from different sources