Fermé

PHP RSS Feed Parser

I need one PHP function that takes the URL of any RSS news feed, loops on all the articles in the RSS feed and for each article will fill the following variables with the correct data:

$FeedURL -> Holds the rss feed url so it will be the same for all the articles

$ChannelTile -> Holds the rss feed title

$ArticleTitle -> Holds the article title

$ArticleLink -> Holds the article URL

$ArticleDesc -> Holds the article description

$ArticlePubDate -> Holds the article publish date

$ArticleImage -> Holds the article image URL (in case the article doesn't have an image then this variable should hold "[login to view URL]")

Please note the following:

1) One PHP function and no more than that

2) The function should be working fine with any feed from the attached excel list

3) While implementing the function you must test it using all the feeds in the excel file

4) All data must be filled in the mentioned variables

This is a sample function for reference, but note that this function doesn't work with all the feeds while the new function you will create needs to work with all the feeds:

$FeedURL = simplexml_load_file($URL);

$namespaces = $rss->getNamespaces(true);

$ChannelTitle = $rss->channel->title;

foreach ($rss->channel->item as $item) {

if(array_key_exists('media', $namespaces)) {

$media_content = $item->children($namespaces['media']);

foreach($media_content as $i){

$imageAlt = (string)$i->attributes()->url;

}

$ArticleImage = $item->image;

$ArticleImageAlt = $imageAlt;

} else {

$ArticleImage = "";

$ArticleImageAlt = "images/[login to view URL]";

}

$ArticleLink = $item->link;

$ArticleTitle = $item->title;

$ArticleDesc = $item->description;

$ArticlePubDate = $item->pubDate;

}

}

Compétences : MySQL, PHP, Architecture Logicielle, XML

en voir plus : how to add rss feed to website using php, rss feed viewer html, php loop through rss feed, rss tutorial php, bootstrap rss reader, rss feeds ajax, rss feed integration in php, rss feed w3schools, ebay rss feed parser asp, php rss feed weather, curl rss feed parser, rss feed parser, simple mysql php rss feed, http_request php rss feed, php rss feed aggregator original signal, objecive url rss feed parser, php rss feed login, getfreelancer php rss feed generator, post php rss feed webpage, automated php rss feed refresh

Concernant l'employeur :
( 72 commentaires ) Cairo, Egypt

Nº du projet : #18376842

6 freelance font une offre moyenne de $44 pour ce travail

maxpl

Hello Sir, I am a full stack developer from Poland. Please message me to discuss further. I have 6+ years of experience in webdesign/development and Mobile Development (Android and IOS). [login to view URL] Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(31 Commentaires)
6.6
jayesh793

Hi Sir, I can certainly do the PHP RSS Feed for you, let us have a chat to discuss further. I'm a dedicated, details oriented, and passionate IT professional with an experience of 6+ years in website/applicatio Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(24 Commentaires)
4.9
aswebsmart

Hi, I have read through your job descriptions, and I understand all of the requirements. I am applying because I believe that I have the required skill set to complete your project. I have been working as a PHP deve Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(14 Commentaires)
3.6
mohammadalihezav

Hi, I can do what you want I did something similar [login to view URL] check my linkedin account to know me better: [login to view URL]

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
1.8
Toreniatech

Hello, We are really glad to submit our proposal and I am interested to work on it. Our main motto is to complete your requirements as soon as possible with high qualities. The services provided by us gor developme Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)
0.0
evonsystems7

"Hi, Hope you are doing well! Thanks for sharing your project requirement with us. It will be our great pleasure to work on your project. I have checked your requirement, yes we can do it, because we already work on si Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(2 Commentaires)
0.0