Files
Testing/mailservices/tbbfeed.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

33 lines
597 B
PHP

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<?php
function getFeed($feed_url) {
$content = file_get_contents($feed_url);
$x = new SimpleXmlElement($content);
echo "<ul>";
foreach($x->channel->item as $entry) {
echo "<li><a href='$entry->link' title='$entry->title'>" . $entry->title . "</a>";
echo "<p>".$entry->description."</p>";
echo "<p><img src='".$entry->url."'/></p>";
echo "</li>";
}
echo "</ul>";
}
getFeed("https://www.thebatorblog.com/feed/");
?>
</body>
</html>