diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2011-07-05 07:11:57 +0200 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2011-07-05 07:11:57 +0200 |
commit | 4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8 (patch) | |
tree | 84184bd3aa80c896b8dceaf5a017297c7267f2cb /library/simplepie/demo/cli_test.php | |
parent | cfd59f6ac8848c19a0c451c378d2b770cafcbef0 (diff) | |
parent | 2359783b9f6c0ec754c641453026712cf22e7cb6 (diff) | |
download | volse-hubzilla-4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8.tar.gz volse-hubzilla-4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8.tar.bz2 volse-hubzilla-4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8.zip |
Merge branch 'dispy' of github.com:fabrixxm/friendika into dispy
Diffstat (limited to 'library/simplepie/demo/cli_test.php')
-rwxr-xr-x | library/simplepie/demo/cli_test.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/library/simplepie/demo/cli_test.php b/library/simplepie/demo/cli_test.php new file mode 100755 index 000000000..ec933c5ad --- /dev/null +++ b/library/simplepie/demo/cli_test.php @@ -0,0 +1,23 @@ +#!/usr/bin/php +<?php +include_once('../simplepie.inc'); + +// Parse it +$feed = new SimplePie(); +if (isset($argv[1]) && $argv[1] !== '') +{ + $feed->set_feed_url($argv[1]); + $feed->enable_cache(false); + $feed->init(); +} + +$items = $feed->get_items(); + +foreach ($items as $item) +{ + echo $item->get_title() . "\n"; +} + +var_dump($feed->get_item_quantity()); + +?>
\ No newline at end of file |