简体   繁体   中英

how to create an rss feed for a website with php mysql from scratch

I need to create an RSS Feed for my PHP web Application. I am new in RSS Feed and I don't know where to start from and what is the full process?

Also I want my web applications database to be updated with the data being updated on other websites.

Can anyone please suggest me?

Well this should not be a big thing for you if you already coding in PHP.

You just need to follow a plan

1) What is the nature of your feed (Structure) 2) What is the output you need is it xml or json or anyother

You should create a controller in php if you using a MVC framework or a simple php file if you simply using php without any framework. In this file/controller write the business logic and just return the data as json or xml as per your feed structure that you had locked down in step one.

You can also have a look at libraries like

https://github.com/dg/rss-php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM