d6d5e9e9f33564bbb2ac84c67dafc6b961a0628d
[m6w6/replicator] / bin / pecl
1 #!/usr/bin/php
2 <?php
3
4 ini_set("display_errors", 0);
5 ini_set("log_errors", 1);
6
7 $what = !empty($argv[1]) ? $argv[1] : "latest";
8
9 if (($sxe = simplexml_load_file("http://pecl.php.net/feeds/$what.rss"))) {
10 foreach ($sxe->item as $item) {
11 $url = (string) $item->link;
12 printf("%s\t%s\t%s\n", basename(dirname($url)), basename($url), $url);
13 }
14 }