Source code for file /simplepie/demo/test.php
Documentation is available at test.php
include_once('../simplepie.inc');
include_once('../idn/idna_convert.class.php');
if (!empty($_GET['feed'])) {
$feed->feed_url($_GET['feed']);
$feed->enable_caching(false);
if (isset
($_GET['xmldump'])) $feed->enable_xmldump($_GET['xmldump']);
$starttime =
$starttime[1] +
$starttime[0];
$endtime =
$endtime[1] +
$endtime[0];
$time =
$endtime -
$starttime;
$feed->handle_content_type();
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title>SimplePie Test</title>
<p>Parsed in:
<?php echo
$time; ?></p>