Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

RSS Feed help

  • 29-02-2012 09:34PM
    #1
    Registered Users, Registered Users 2 Posts: 345 ✭✭


    Hi Guys,

    I have been using an RSS feed i wrote with PHP for the last 3 years and all was going well until a certain unmentionable site decided to change how things worked and started to use 'magnet' links instead of the normal torrent links.

    Anyway , i tried to recode the RSS feed for this and i keep having the same issue and i cant seem to get around it so anyone who knows about RSS might be able to help me out.

    The link im trying to send is like this

    [PHP]<link>magnet:?xt=urn:btih:7be37ac7f65dc78bf8b115629e60220c637fe0d1&dn=Name+of+the+file</link>[/PHP]

    but when i use that i keep getting an error saying expecting a semicolon because i should be replacing & with & ... unfortunately , when i do that , the page displays , but i have no links at all and when i check the source , it looks like

    [PHP]<link>magnet:?xt=urn:btih:7be37ac7f65dc78bf8b115629e60220c637fe0d1&dn=Name+of+the+file</link>[/PHP]

    anyone have any ideas on how to get around this ?

    I basically want to make an RSS feed for magnet links with PHP.


Comments

  • Registered Users, Registered Users 2 Posts: 9,456 ✭✭✭RobertFoster


    Try:

    [php]<link><![CDATA[magnet:?xt=urn:btih:7be37ac7f65dc78bf8b115629e60220c637fe0d1&dn=Name+of+the+file]]></link>[/php]

    CDATA explanation.


  • Registered Users, Registered Users 2 Posts: 345 ✭✭DjTaz


    Thanks Robert ...
    That works without errors , but still no link on the page :(


Advertisement