Basic RSS Help??
Moderator: General Moderators
Basic RSS Help??
Ok, I'm looking to use an RSS feed on my site to update weather, etc. I unfortunately have NO clue at all how it works so I don't know what to look for. Can someone help me out, maybe give me a few links for starters (anything would help).
Thanks,
Jr-
Thanks,
Jr-
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Look into PHP's filesystem functions. Basically you want to open the page, read the content into a file, scan that up to the point where your text starts and dump what is befor the text. Then scan the remaining portion of the file and dump what comes after the text. What you have left is the text you want to see.
All of these steps need to be in a .php file on a server that your company allows you to browse AND each of the sites that you grabbing content from need to approve your use of their content on your server (if you didn't write the content then you don't own the rights to the content).
All of these steps need to be in a .php file on a server that your company allows you to browse AND each of the sites that you grabbing content from need to approve your use of their content on your server (if you didn't write the content then you don't own the rights to the content).
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Grrr!!! This is the third time I've typed this reply because php.net keeps crashing my damn browser
No clue what's causing that, but before the page even loads my browser just hangs until GNOME asks me if I want to force quit 
OK, back on topic
RSS feeds are XML. XML is easily parsed. PHP has a bunch of functions for doing this:
http://php.net/xml
OK, back on topic
RSS feeds are XML. XML is easily parsed. PHP has a bunch of functions for doing this:
http://php.net/xml