![]() |
|
||||||
|
|||||||
| Register | FAQ/Rules | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
php script to create RSS-feed
I use this piece of code to create the rss-feeds on my sites. I want to share this with you all as I have learned a lot from these boards and want to give something back.
the code : php Code:
php Code:
I hope this might be useful to somebody. Do with it what you will. Last edited by digitalpoint : Oct 9th 2005 at 3:17 pm. Reason: Added [php] BBCodes |
|
#2
|
|||
|
|||
|
It looks impressive
Can we have a live example using this script?
__________________
Analyze Backlinks Quickly - Stop using the yahoo siteexplorer tool ! WTB: Links and blog posts related to health, fitness and beauty industry
|
|
#3
|
||||
|
||||
|
I'll certinly give it a go.
__________________
|
|
#4
|
||||
|
||||
|
This is cool. Have been looking for something like this. Thanks for sharing.
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
||||
|
||||
|
we will try it also ! very impressive !!!
__________________
Free Business Cards - Just get it for FREE...Looking for Web Designers ? Try our FREE Service |
|
#7
|
||||
|
||||
|
I highly recomend magpie rss. It has built in cacheing and other neato tools
|
|
#8
|
||||
|
||||
|
where it can be found ?
__________________
Free Business Cards - Just get it for FREE...Looking for Web Designers ? Try our FREE Service |
|
#9
|
|||
|
|||
|
Magpie can be found at http://magpierss.sourceforge.net/
It is used to parse an rss-feed. It does not create rss feeds. I use it on my news site. It is indeed very good. |
|
#10
|
||||
|
||||
|
ahhhhh sorry maybe magpie is not the solution here... my bad
|
|
#11
|
||||
|
||||
|
Thank you for the link
__________________
Free Business Cards - Just get it for FREE...Looking for Web Designers ? Try our FREE Service |
|
#12
|
||||
|
||||
|
sgthayes,
how does a static website create a rss feed from your code above ? |
|
#13
|
|||
|
|||
|
I think you have to add titles , description etc manually in the second part of the script.
|
|
#14
|
|||
|
|||
|
Yep, if your site is static you'll have to add the items manually OR you could make a script that parses the directory where your static files are, then open each file and use the <title> tag for instance as the title of the feeditem and add them this way. Depends on how much static files there are and how frequently you create new ones.
|
|
#15
|
|||
|
|||
|
I use mysql table and add title, url , desc and date by using a form. So when ever I add content to my site I use that form and store these info in the table. Then another page creates the rss.xml page out of this table info by taking the last 5 new entries, it also creates another JavaScript feed with the records.
As I don't add more than 4 or 5 pages in a week so easy for me to handle this way. |
|
#16
|
|||
|
|||
|
Looks nice my friend.
|
|
#17
|
|||
|
|||
|
can you give us the files please?
hi, I'm not taht good with php yet, can you post these files to download please? can how did you write the corn job? it will be very very helpful!
thanks |