From 704ff333cf615e79cc307182ad8cd07cdbd55a38 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Tue, 5 Sep 2023 23:20:48 +0200 Subject: Test SimplePie --- test/news.php | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 test/news.php (limited to 'test') diff --git a/test/news.php b/test/news.php new file mode 100644 index 000000000..281cb61ec --- /dev/null +++ b/test/news.php @@ -0,0 +1,79 @@ + + lang=""> + + + + + + + + +set_feed_url("https://blog.mageia.org/en"); + $feed->set_cache_location(realpath(G_APP_ROOT . '/_nav/var/tmp/cache')); + $feed->set_cache_duration(3600 * $cache_timeout); + $feed->set_timeout(10); // second part of a #mga23215 bugfix + $feed->force_cache_fallback(true); // this should help if rss files are not retrievable + $feed->enable_order_by_date(true); + $feed->init(); + $feed->handle_content_type(); + +$feed->handle_content_type(); + +?> + +
+
+
+ + + + + + + + -- cgit v1.2.1