_response_to_rss example

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         $resp = _fetch_remote_file( $url );
        if ( is_success( $resp->status ) ) {
            return _response_to_rss( $resp );
        }
        else {
            // error("Failed to fetch $url and cache is off");             return false;
        }
    }
    // else cache is ON     else {
        // Flow         // 1. check cache         // 2. if there is a hit, make sure it's fresh
Home | Imprint | This part of the site doesn't use cookies.