How To Create PHP RSS Feeder App To Share Website Content

0
Shares
How To Create PHP RSS Feeder App To Share Website Content
Rate this post

RSS, also known as Rich Site Summary is a technology used by millions of web users for keeping track of their favourite websites. And, for website owners, having a PHP rss feeder is a great way for sharing their website content to the rest of the world.

It’s a technology used on daily basis probably. However, it’s necessary to create php rss feeder yourself. And, in today’s PHP tutorial, we’ll create a PHP RSS feeder app with step-by-step implementation process.

Let’s Get Started

First, we need to create access feed in PHP.

<?php
$rss = simplexml_load_file('{DOMAIN URL}');
$feed1 = '<h3>'. $rss->channel->title . '</h3>';
foreach ($rss->channel->item as $item) {
$feed1 .= '<h4><a href="'. $item->link .'">' . $item->title . "</a></h4>";

} ?>

Now, we’ll create a file with Index.php to display feed in the browser.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>How to read RSS feed in PHP | Space-O</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript">
$(function() {
$( "#tabs" ).tabs();
});
</script>
</head>
<body>

<div id="tabs" style="margin-left:auto;margin-right:auto;width:600px;">
<ul>
<li><a href="#tabs-1">Space-O</a></li>
</ul>
<div id="tabs-1">
<?php echo $feed1; ?>
</div>
</div>
</body>
</html>

Not too complicated, right?

feed

From this process, you can create your own PHP RSS feeder app yourself. In fact, it’s also possible to create responsive design for your RSS feed reader, but if you’re not aware with PHP language, then it’s better to Hire PHP developer for your web app development project.

 
0
Shares
 

Have an App Idea?

Get your free consultation now