473,598 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tool to build RSS feed?

Hello

I'm not an expert on RSS, and I'd like to find a tool to make
it easy to create an RSS feed for a site whenever a new row is created
in a MySQL database.

Is there some PHP tool that would make this easy to do?

Thank you.
May 29 '07 #1
10 1760
On May 29, 2:55 pm, Gilles Ganault <nos...@nospam. comwrote:
Hello

I'm not an expert on RSS, and I'd like to find a tool to make
it easy to create an RSS feed for a site whenever a new row is created
in a MySQL database.

Is there some PHP tool that would make this easy to do?

Thank you.
Google it :o)

Making an RSS feed is easy - there are plenty of templates out there.
All you need to do to create a dynamic RSS feed is to write a PHP file
and make it call to the database to get the required data and output
XML headers and then follow the template.

Or if you think that's lame - you can generate a new XML file
everytime something new is added to the database.

May 29 '07 #2
On 29 May 2007 15:16:23 -0700, SterLo <st************ ***@gmail.com>
wrote:
>Google it :o)
I obviously did, and stumbled on two.. that didn't work :-/ One of
them is feed.class, which I downloaded from

http://svn.sourceforge.net/viewvc/de...ss?view=markup

//Fatal error: Call to undefined function get_branding()
$r.= sprintf("\t\t<g enerator>%s</generator>\n",
htmlentities(ge t_branding(FALS E)));
>Making an RSS feed is easy - there are plenty of templates out there.
All you need to do to create a dynamic RSS feed is to write a PHP file
and make it call to the database to get the required data and output
XML headers and then follow the template.
Is there a template you would recommend?

BTW, do I create a new file with new items instead of appending them
to older items?

Thank you.
May 29 '07 #3
Gilles Ganault wrote:
http://svn.sourceforge.net/viewvc/de...ss?view=markup

//Fatal error: Call to undefined function get_branding()
$r.= sprintf("\t\t<g enerator>%s</generator>\n",
htmlentities(ge t_branding(FALS E)));
That's my feed class -- eek! I didn't know that Feed.class called the
"get_brandi ng" function -- I thought it was reasonably independent of
the rest of demiblog. I'll make changes ASAP to remove this dependency.

In the mean time, I recommend creating a function get_branding like this:

function get_branding () { return "Your Site Name"; }

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 15:44.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #4
Gilles Ganault wrote:
//Fatal error: Call to undefined function get_branding()
Fixed now -- just download a new copy.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 15:53.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #5
..oO(Toby A Inkster)
>Gilles Ganault wrote:
>http://svn.sourceforge.net/viewvc/de...ss?view=markup

//Fatal error: Call to undefined function get_branding()
$r.= sprintf("\t\t<g enerator>%s</generator>\n",
htmlentities(ge t_branding(FALS E)));

That's my feed class -- eek! I didn't know that Feed.class called the
"get_brandin g" function -- I thought it was reasonably independent of
the rest of demiblog. I'll make changes ASAP to remove this dependency.
Is that called remote debugging? ;)

Micha
May 30 '07 #6
Michael Fesser wrote:
Is that called remote debugging? ;)
I suppose so, though I doubt Usenet would be a suitable communication
channel if the remote debugging were to be mechanised.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 18:30.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/0...tive-surnames/
May 30 '07 #7
On Tue, 29 May 2007 23:55:53 +0200, Gilles Ganault <no****@nospam. com>
wrote:
>Is there some PHP tool that would make this easy to do?
Apparently, it's not that complex, and I just need to create a text
file that looks like this:

=============== ==
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
xmlns:content=" http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http ://wellformedweb.o rg/CommentAPI/">
<channel>
<title>My Dummy Channel</title>
<link>http://localhost/dummy.xml</link>
<description>So me dummy channel</description>
<!--pubDate>Wed, 30 May 2007 15:30:15 CEST</pubDate-->
<item>
<title>Some dummy title</title>
<link>http://localhost/1.html</link>
<pubDate>Wed, 30 May 2007 18:15:19 CEST</pubDate>
<guid>http://www.sortirsurpa ris.net/sortie_read.php ?13521</guid>
<description>So me <a
href="http://localhost/1.html">link</a>.</description>
</item>
</channel>
</rss>
=============== ==

=Although it's not PHP-related... I have a couple of questions:

1. Do I have to update the Channel's <pubDatevery time I add an item
in the file for RSS clients to notice that it was updated, or do RSS
clients parse the whole file and read each item's pubDate to tell if
they know about it?

2. Do RSS clients keep track of items they know about, so that I don't
need to keep more than today's items in the file (just for readers who
only check this RSS feed when they come home)?

Thank you.
May 30 '07 #8
On Wed, 30 May 2007 20:51:59 +0200, Gilles Ganault <no****@nospam. com>
wrote:
>Apparently, it's not that complex, and I just need to create a text
file that looks like this:
For those interested, it can be even simpler:

<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>

<title>My Dummy Channel</title>
<link>http://www.acme.com/rss.xml</link>
<description>So me dummy channel</description>

<item>
<title>Test</title>
<link>http://www.acme.com/article.php?123 </link>
<description> A basic description</description>
<guid isPermaLink="fa lse">123</guid>
</item>

</channel>
</rss>

Items can even have the same title: Just incrementing GUID is enough
for RSS clients to tell new items from old ones.

HTH,
May 30 '07 #9
I told you it wasn't hard :op

May 31 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2602
by: _andrea.l | last post by:
how to build a interfaces (or web pages) in easy way? how to build a form in easy way? how to automate and create web pages whit a tool? which tool to use to create form for a database? I mean there is a way or a tool which help me to build an interfaces (web pages) to deal with the data in a database ? Tahnk you in advance, Andrea.
2
2221
by: the_ainbinders | last post by:
Anything like this around anywhere? Need to be able to input RSS information for several feeds and have it create an OMPL file. TIA, Rob
8
2580
by: ted | last post by:
How does the speed of the Scons build tool compare with Ant? Right now with out Ant builds take around an hour. Hoping to speed that up. TIA, Ted
3
1897
by: Eric Chong | last post by:
I have been trying to automate our builds using BuildIt tool available from Microsoft. This tool only log whether build is success or fail. Since all developers would like to see what the build error descriptions are, I need to add it to the source code. However, SolutionBuild object don't have that property available. Is it even possible to get that information? What should I do in order to get an error description? Thanks in advance.
2
1871
by: Soundneedle | last post by:
I have code that loops through a record set, which build an outlook email's body. The problem is, I don't know how to "build" the .body while in the loop without resetting the .body's value to the current record. For example, the .body should equal: John Jake Debby
1
1201
by: Jose | last post by:
Hi, Our small company is growing quickly, and we need a source control and build tool for all our c# .net code. For build tool, i was thinking Nant. For source control, i was thinking perforce (for Win). Any home runs out there?
5
1363
by: sh | last post by:
I am working on a database project, and I'm trying to think "objectively". Are there any tools that will map my "objects" to relational tables? I'd prefer a freebie, or something faily low-cost to start off. Thanks for any assistance.
26
25595
by: webrod | last post by:
Hi, I have some php pages with a lot of HTML code. I am looking for a HTML validator tool (like TIDY). TIDY is not good enough with PHP tags (it removes a lot of php code). Do you have any idea? Thanks you very much
6
1774
by: Hussein B | last post by:
Hi. Apache Ant is the de facto building tool for Java (whether JSE, JEE and JME) application. With Ant you can do what ever you want: compile, generate docs, generate code, packing, deploy, connecting to remote servers and every thing. Do we have such a tool for Python projects? Thank you.
0
8392
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6711
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3894
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2410
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1500
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.