TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   RSS to MySQL (http://www.talkphp.com/general/2603-rss-mysql.html)

Jmz 04-08-2008 10:56 AM

RSS to MySQL
 
If I have an RSS (XML) feed that I want to save into a MySQL database using PHP, how would I go about doing this?

A link to a nice tutorial would be good :-D

Salathe 04-08-2008 12:11 PM

There are numerous methods that you could employ to get the job done -- any tutorial will give you just one way to do it, which might or might not be the best approach for you.

The task essentially boils down to a number of sub-tasks:
  1. Grab the RSS document (from a remote location?)
  2. Parse the XML into a PHP data structure (Arrays, Objects [SimpleXML, DOM, Custom?], etc.)
  3. Add to MySQL database (MySQL extenstion, MySQLi, PDO, etc.)


All times are GMT. The time now is 12:00 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0