Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Unknown

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /simplepie/demo/test.php

Documentation is available at test.php

  1. <?php
  2. include_once('../simplepie.inc');
  3. include_once('../idn/idna_convert.class.php');
  4.  
  5. // Parse it
  6. $feed new SimplePie();
  7. if (!empty($_GET['feed'])) {
  8.     $_GET['feed'stripslashes($_GET['feed']);
  9.     $feed->feed_url($_GET['feed']);
  10.     $feed->enable_caching(false);
  11.     if (isset($_GET['xmldump'])) $feed->enable_xmldump($_GET['xmldump']);
  12.     $starttime explode(' 'microtime());
  13.     $starttime $starttime[1$starttime[0];
  14.     $feed->init();
  15.     $endtime explode(' 'microtime());
  16.     $endtime $endtime[1$endtime[0];
  17.     $time $endtime $starttime;
  18. else {
  19.     $time 'null';
  20. }
  21.  
  22. $feed->handle_content_type();
  23.  
  24. ?>
  25. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  26. <title>SimplePie Test</title>
  27. <p>Parsed in: <?php echo $time?></p>
  28. <pre>
  29. <?php
  30.  
  31. // Output buffer
  32. function callable_htmlspecialchars($string)
  33. {
  34.     return htmlspecialchars($string);
  35. }
  36. ob_start('callable_htmlspecialchars');
  37.  
  38. // Output
  39. print_r($feed);
  40.  
  41. ?>
  42. </pre>

Documentation generated on Mon, 05 Mar 2007 21:29:17 +0000 by phpDocumentor 1.3.1