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 12 of 12
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    method for feeding data to outside sites?

    Hi,

    I want to feed data to several sites that are not on my server. Which way would you recommend and why?

    RSS
    XML file
    other?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Oh that was a stupid question. done whilst I was tired I have now read up abit more.

    I get how an rss feed works and how to build one. And I get how it can be read to in a rss reader.

    But, his the feed compiled and treated in the same way when feeding to other websites or does it need to be compiled differently?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    RSS is a format, so as long as your file complies with the standards of RSS, then any RSS reader should be able to use your file.

    Or did I miss the point of your question?

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    I want to feed the data to websites as well so that the data automatically updates when there is more new stuff. is RSS the way to do that as well or is there some other way? Not just a heading type feed but actual web page data.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #5
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Ya know, I'd probably just use XML format then. It's very similar to RSS anyway, but if you don't need to make it RSS-compliant, then why bother?

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    OK, I must have a mental block. If I make an xml file with the necessary data, how does it get fed to the other websites on different servers?

    I'm guessing that, either I need to write the file on the other servers or write to one file on my server and enable others to read it from my server. sounds like an API is needed but doesn't that rely on JS?
    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #7
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You have admin rights to these other servers, right? You'll want to write a script (in your beloved Perl of course ) that reads the XML file from the originating server and displays the data. So I'm thinking this process is a "pull" process, not a "push" process.

    Would that not get you where you want to go?

  • #8
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thanks Fumigator.

    I have a central db for all the 'stuff' and it is already accessed for websites in the 'beloved' perl

    But I have found a potential client who doesn't want to replace their site with an off-the-shelf (coding-wise) one. Instead, they want to get the relevant data from a feed. Quite how this can work when they want also to run a booking system with said feeds, has stumped me because I am so familiar with how the booking system works now - direct queries for instant output.

    :scratches head:

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Hopefully I understood what you are asking, this is my take on it.

    Provide a URL to a script that will access your database and build the XML file of the data and return it. That way whenever the external sites want to update their data, they can request it. You can even build in support for them to specify the last time they requested data so you only give them anything new since then.
    OracleGuy

  • #10
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Great oracleguy. thanks

    So is it safe to assume that there will always be a manual part in that process as you describe ie one where they take the xml file and enter its data to their own db?

    If I can't give them an off-the-shelf site (which is automatic), I would rather try to find a way to let them access the active parts of a given page and to have that read by their site, as and when each page loads. basically a dynamically generated page taking data from my server. However, I suppose that could bring security issues even though the 'central' domain is already set for read access by other domains which are on the same server.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #11
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Make the RSS feed. There are tons of plugins out there that can read rss feeds quite easily. If you made your own custom file it would be a little more work to parse it. When your site gets updated so does the feed because the feed would be pulling data directly from your site. Check out the feed here

    http://www.codingforums.com/external.php?type=RSS2

    Its all dynamic. You could probably do something similar where you have different versions to suit everyone. Basically if you change the type from RSS1, to XML, to RSS2 you get different versions.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #12
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    You could create a web service that handles these as well, it uses XML but it's more straight forward if you have experience with web services.


  •  

    Posting Permissions

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