RSS to PHP - Need Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cdast
Forum Newbie
Posts: 1
Joined: Wed May 19, 2010 3:08 pm

RSS to PHP - Need Help

Post by cdast »

Hi,
I have a website that has a consumed RSS feed using PHP. I was given the code by someone but need someone to tell me how I can eliminate all the links on the RSS feed. I don't want to elminate the text, just the link. I don't want to lose the visitors to my website to other sites. Please let me know if you can help me. Please note that I am extremely new to PHP.
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: RSS to PHP - Need Help

Post by mikosiko »

cdast wrote:Hi,
I have a website that has a consumed RSS feed using PHP. I was given the code by someone but need someone to tell me how I can eliminate all the links on the RSS feed. I don't want to elminate the text, just the link. I don't want to lose the visitors to my website to other sites. Please let me know if you can help me. Please note that I am extremely new to PHP.
just a shoot without seeing your code... but probably you have to look in the code for your RSS consumer for lines like this :

Code: Select all

	echo '<a href="'.$value->link.'" target="_blank">'.$value->title.'</a><br />'; 
or similar and eliminate the '<a' tag
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: RSS to PHP - Need Help

Post by requinix »

I don't suppose you know that, pretty much, the more links you have to other, established sites, the better you will be ranked in search engines?

Besides that, I, for one, would be upset if you removed any links from an RSS feed I published.
mikosiko
Forum Regular
Posts: 757
Joined: Wed Jan 13, 2010 7:22 pm

Re: RSS to PHP - Need Help

Post by mikosiko »

tasairis wrote:I don't suppose you know that, pretty much, the more links you have to other, established sites, the better you will be ranked in search engines?

Besides that, I, for one, would be upset if you removed any links from an RSS feed I published.
+1 on that
Post Reply