Find Jobs
Hire Freelancers

PHP RSS Feed Parser

$10-30 USD

已关闭
已发布超过 5 年前

$10-30 USD

货到付款
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; } }
项目 ID: 18376842

关于此项目

5提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价$47 USD来参与此工作竞价
用户头像
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/application designing and development. I can assure you, my creativity and effectiveness is surely going to be a great value to your project. Thank you for your time, Jay
$35 USD 在7天之内
4.8 (30条评论)
5.1
5.1

关于客户

EGYPT的国旗
Cairo, Egypt
5.0
91
付款方式已验证
会员自10月 6, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。