CodeIgniter Forums
Automatic RSS from 20 categories according what the user tick - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Automatic RSS from 20 categories according what the user tick (/thread-51746.html)



Automatic RSS from 20 categories according what the user tick - El Forum - 05-16-2012

[eluser]term25[/eluser]
Is this possible at all using PHP/CI?

I mean I have like 20 categories of my articles (stored in my db table articles as column category and can have values like soccer, basketball, hockey etc.)

Now I have a page called customize-your-rss and there I would like to have checkboxes of all categories, so the user can build his own rss feed.

When he is satisfied with his choices he press a button "give me the custom RSS link" and a script will create a new rss feed file and give him an address.

I was thinking that before it generate a new link and create a new rss file, it could check if this file (this combination was ever created before, and if yes, then do not create a new file, just output the link to existing file)

However here I think is the biggest problem that after some time, there will be so many combinations and the server will be not able to perform this task anymore.

What do you think?

How will you solve this problem? Do you hae any previous expierience like this?

Thanks in advance for any info.


Automatic RSS from 20 categories according what the user tick - El Forum - 05-16-2012

[eluser]term25[/eluser]
Any suggestion how to solve this problem?


Automatic RSS from 20 categories according what the user tick - El Forum - 05-16-2012

[eluser]pbflash[/eluser]
I wouldn't create individual files every time they save their choices. I would save the choices to the DB and give each entry an ID. Then create a controller, model, view that would generate the RSS using the ID. Then your link would be something like:

yoursite.com/rss/generate/123


Automatic RSS from 20 categories according what the user tick - El Forum - 05-16-2012

[eluser]term25[/eluser]
OK, thanks I will try it, your way sounds easier.