Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


Results 1 to 3 of 3

Thread: rss generator

  1. #1

    rss generator

    I have one problem. I have an rss feed generator. it works fine, but i want it to be accessed by the users differently. Currently, to access the rss feed you have to open www.mysite.com/rss.php the output of the file is the rss information. What i whant done is to acceess www.mysite.com/rss.xml and the xml to be genrated on the spot.
    How can I do that?

  2. #2
    what's the difference? either way it should be outputting a content-type of application/rss+xml .

    anyway, to do what you're describing you have 2 options as i see it.
    1) use htaccess to tell your site to parse .xml as files as PHP. obviously this has other implications as well.
    2) write to your RSS .xml file when updates are actually made. thus, it's not being generated when the user goes to that address, but rather when the content is generated.

  3. #3
    Thanks for the sugestions. Well, I am running a comercial script, and making the xml be updated with each update on the BD would be a litle too difficult. It is a solution though.

    How can i make the server parse xml files as php through .htaccess? I want to make this (it is the only xml file on the server)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012