I have decided to create a RSS feed for my website. Every month, I want the feed to update with the latest PDF file in the feed. Note: The site is hosted on a UNIX based server.
1. How do I automate the RSS feed to check in a certain folder(s) and if there is a new PDF, add it to the feed?
2. After the PDF has been added to the RSS feed, I would like the contents of the PDF to be displayed just like a blog post would be inserted into an RSS feed.
Put it this way, in order to check for the PDF, someone would need to initiate the check, so instead of putting the file directly in the directory, use a script to put the file there. You can also add to the script to read the file and information and post it in an RSS feed. There are OpenSource feeds out there (WordPres, etc). Your best option is PHP, since there are prebuild functions in the code that read PDF files.
OK but how is that done? I have experience with HTML but I have never written a script before. Could you link me to some instructions on how to do that with PHP?
http://www.w3schools.com would be a good place to start learning. Another option would be to downlooad a PHP book.
I already looked at W3 schools and they just have the basics of creating an RSS feed. I will look around to find something on PHP.
WordPress has an RSS script. You can strip the php files from there that build the xml file and utilize that for the PDFs. Or you can use FeedBurner and see if they have something that can accommodate you.
| Forum legend: | |
| Locked thread | |
| Moderator | |
![]() |
CNET staff |
![]() |
Samsung staff |
| Norton Authorized Support team | |
| AVG staff | |
| Windows Outreach team | |
![]() |
Dell staff |
| Intel staff | |