Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: php52x
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (10 sloc) 0.46 kb
<?php
require 'Exchange.php';
require 'import/cnWSJ.php';
require 'export/RSS2_Exporter.php';
// test.php
$exchange_obj = new Exchanger;
$exchange_obj->addImporter(new cnWSJ(array('url' => 'http://chinese.wsj.com/big5/rssbch.xml', 'disable_cache' => false, 'TTL' => 3600)));
$exchange_obj->setExporter(new RSS2_Exporter);
$exchange_obj->setSorter(new TimeSorter);
$exchange_obj->process(Exchanger::DISPLAY_CONTENT); # RENDER_ONLY / DISPLAY_CONTENT(def)
Jump to Line
Something went wrong with that request. Please try again.