CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/cwd/usr/share/doc/cpanel-php73-Horde-Feed-2.0.4/examples/
Upload File :
Current File : //proc/2/cwd/usr/share/doc/cpanel-php73-Horde-Feed-2.0.4/examples/blogroll.php

#!/usr/local/cpanel/3rdparty/php/73/bin/php
<?php
/**
 * @package Feed
 */

/* Get a Horde framework include_path set up. */
require 'Horde/Autoloader.php';

$p = new Horde_Argv_Parser(array(
    'usage' => "%prog opml_url\n\nExample:\n%prog subscriptions.opml",
));
list($values, $args) = $p->parseArgs();
if (count($args) != 1) {
    $p->printHelp();
    exit(1);
}

$blogroll = Horde_Feed::readFile($args[0]);
echo $blogroll->title . "\n\n";
foreach ($blogroll as $blog) {
    $feed = $blog->getFeed();
    echo $feed->title . "\n\n";
    foreach ($feed as $entry) {
        echo "$entry->title\n";
    }
    echo "\n\n";
}

exit(0);

Copyright 2K16 - 2K18 Indonesian Hacker Rulez