Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts

    Problem writing my rss feed with php

    Hi,

    I have written my script which outputs
    an RSS feed.

    But when I test it I keep getting an error:

    The Feed Test Result

    And this is my feed url:
    http://combld.com/feed.php?p=1

    The test seems to indicate that I have not used the
    <channel> </channel> pair properly.

    But I can not see anything wrong.

    Would appreciate a second pair of eyes

    Thanks.


    .
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    Regular Coder patryk's Avatar
    Join Date
    Oct 2012
    Location
    /dev/couch
    Posts
    398
    Thanks
    2
    Thanked 64 Times in 64 Posts
    your formatting is all wrong.
    that's how valid atom 1.0 looks like:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
     
    <feed xmlns="http://www.w3.org/2005/Atom">
     
            <title>Example Feed</title>
            <subtitle>A subtitle.</subtitle>
            <link href="http://example.org/feed/" rel="self" />
            <link href="http://example.org/" />
            <id>urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6</id>
            <updated>2003-12-13T18:30:02Z</updated>
     
     
            <entry>
                    <title>some title</title>
                    <link href="http://example.org/2003/12/13/atom03" />
                    <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
                    <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
                    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
                    <updated>2003-12-13T18:30:02Z</updated>
                    <summary>Some text.</summary>
                    <author>
                          <name>John Doe</name>
                          <email>johndoe@example.com</email>
                    </author>
            </entry>
    
            <entry>
                    <title>other title</title>
                    <link href="http://example.org/2003/12/13/atom03" />
                    <link rel="alternate" type="text/html" href="http://example.org/2003/12/13/atom03.html"/>
                    <link rel="edit" href="http://example.org/2003/12/13/atom03/edit"/>
                    <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6b</id>
                    <updated>2013-12-13T18:30:02Z</updated>
                    <summary>Some text.</summary>
                    <author>
                          <name>John Doe</name>
                          <email>johndoe@example.com</email>
                    </author>
            </entry>
     
    </feed>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •