fetch_rss example

if ( !function_exists('fetch_rss') ) :
/** * Build Magpie object based on RSS from URL. * * @since 1.5.0 * @package External * @subpackage MagpieRSS * * @param string $url URL to retrieve feed. * @return MagpieRSS|false MagpieRSS object on success, false on failure. */
function fetch_rss ($url) {
    // initialize constants     init();

    if ( !isset($url) ) {
        // error("fetch_rss called without a url");         return false;
    }

    // if cache is disabled     if ( !MAGPIE_CACHE_ON ) {
        // fetch file, and parse it
Home | Imprint | This part of the site doesn't use cookies.