i am currently developing a website where i need to generate RSS feeds and provide to the users to get frequent updates.
Please guide me on how to do this...
Thanks a lot.
Regards,
Gourav
Creating a custom rss feed with php.
You definetly need to do some google searches before you start to post questions like this ( there may be millions of ways to aproach this ) .
An RSS feed is basically just an XML document which you serve on the internet, just like a regular web page. A typical approach is to read your data from a database, convert it into a raw XML format, and then apply an XSLT to convert it to RSS. You don't have to use a database though, hand-edited XML files would, theoretically speaking, work as well.
The wikipedia article on RSS ( http://en.wikipedia.org/wiki/RSS ) should get you started on the file format and how to embed it into your web pages.
Use Yahoo's BOSS API, i used it for my iPhone app of similar nature to what you want to do. Its free and they dont limit your IP requests :)
Related
I learned from some sites (such as from this) that I can use keywords with RSS feed links, but I have not succes when I try this with a particular site. Is this way of access RSS feeds a general one, or it is limited somehow?
RSS is a data format, just like HTML.
If you want to get different data, then the server has to generate different data.
That needs server side code to be designed to generate different RSS (or different static files to be created).
I have a RSS feed with more than 5000 items in it. In the user interface, I'm trying to have search feature with ability to do custom search based on different categories. First when the page loads I'm just showing the first 10 feeds which loads really quick as its supposed to be, but when we enter a string to search with a category selected, the processing is pretty slow. I want to know if there is a way to do this more efficiently than going through each and every feed item every single time.
I'm not adding any code here because I'm looking for ideas for handling/searching such large rss feeds. So far I have been using PHP (simple XML) and JavaScript.
RSS (and XML in general) are great data transport formats. They are not good formats for accessing that data via random access.
Import the feeds into a database (properly, don't just dump the raw XML in there) such as Postgresql or MySQL and use a full text search provided by the database server.
Don't use SimpleXML for this. (In fact, it really shouldn't be used at all). Rather, use the DOMDocument class to parse through your XML.
You can use a session variable to store all the feeds. Also in the background have a polling script which checks for new feed. If you get one, add it to the session. Use the session variable to search the feed.
what would be the best way to code an e-book library in php? how should the e-books be displayed? should the contents be generated from the database or from sources like txt or pdf? altho i'd prefer the ebooks to be displayed in html format, not pdf. are there any good online tutorials on this?
i'd appreciate your thoughts.
I think you are running into problems because of your terminology, main e-book. For example, what you want to do won't work on my Kindle I expect, but do you want to do something similar to Google Books or Scribd?
Ideally you should store the content in the most flexible format you can, to have the maximum amount of information, as you can then dumb it down to the format you want to display it in.
So, you could store it as xml or LaTeX, and then if you want to convert it to pdfs, html or text you can pull arrange it as needed.
As to how to display it, that depends largely on how you want people to interact with your application.
I've tried every method that I knows but didn't got the solution on "How to create an rss feeds and sitemap for a dynamic site that get updated automatically".
The basic idea is to have your php file generate a valid RSS (xml) based on your database results. So, select the data you want to show from the MySQL db, and output them, conforming to the rss standard.
Check the top three google results
For the sitemap it will be a little harder, and it greatly depends on your structure, which is unknown to us. But the principle is the same - output a valid xml file conforming to the sitemap standard, based on the pages you want to show.
I just found this pipe.
http://pipes.yahoo.com/jonbishop/8vA1gjvl3RGqWknCBB50VA
I was just wondering if it was possible to integrate this into my web app? How would I go about doing it.
Basically, I have a form on my website - I would like this form to interact with this pipe to get the relevant data.
Could someone post a summary of what I would need to do to achieve this? I can then probably work it out from there. Using PHP.
Thanks
Quoting http://pipes.yahoo.com/pipes/docs?doc=overview
Sharing a Pipe
Once you've built a Pipe, you'll be
able save it on our server and then
call it like you would any other feed.
Pipes offers output in RSS 2.0, RSS
1.0 (RDF), JSON and Atom formats for maximum flexibility. You can also
choose to publish your Pipe and share
it with the world, allowing other
users to clone it, add their own
improvements, or use it as a
subcomponent in their own creations.
So you'd access it with any Feed Reader or XML lib you like. I am not aware of a public API for building Yahoo Pipes programmatically.