Source Code



Get Content of RSS Pasarkode

  • Subscriber
  • Jun 14' 14
  • PHP
  • 251
  • 118
  • United States

You can get RSS of Pasarkode.com by this code

the syntax :

<?php

$url = "http://pasarkode.com/feeds";

$sxml = simplexml_load_file($url);

$data=$sxml;
$channel=$data->channel->item[3]->link;
$jml=count($data->channel->item);
echo $jml.$data->channel->item[3]->link;

for ($i=0; $i<$jml; $i++){
	echo "Title : ".$data->channel->item[$i]->title."
"; echo "URL / Link : ".$data->channel->item[$i]->link."
"; echo "Summary : ".$data->channel->item[$i]->description."

"; } ?>

 

 

 

  • Tags : rss, feed, xml, parse
comments powered by Disqus

Related Code

Get Image From URL Using DOM

Extracting Email Addresses



Category

Tag Linked