Image caption
Green leaf structure, Botanical Garden, Bogotá, Colombia
More images...
About me
Helmar, Cape Town, South Africa
View my profile | Contact me

My browser of choice - with good reason!
Opera 9 - Your Web, Your choice
Current Moon Phase
CURRENT MOON
Wisdom quote
We need to be human above all, and realise that we don’t know the answers of this cosmos. There’s a great beauty in being uncertain about life. It’s called the invulnerable.
- Alan Clements

More quotes...
Latest visitor comments
» Racism Debate
Julian Wareley, Cape Town, South Africa, on 23 January
» Build of silver probe with battery.
Hein Cohrs, Piet Retief, South Africa, on 3 January
» amazing stuff
Nicky, Johannesburg, on 28 December
» List of Municipalities
Musa, Midrand, on 10 June
» The key is the intention, the limit your imagination
Alexander Rodriguez, Colombia Bogota, on 26 October
Balm to your ears...
{ Show all }
Volume 3: Further in Time
Afro Celts
Volume 3: Further in Time
A Gift of Love
Deepak Chopra & Friends
A Gift of Love
Journey to Zipangu
Himekami
Journey to Zipangu


Power to your mind...
{ Show all }
Wasser & Salz - Urquell des Lebens
Dr Barbara Hendel, Peter Ferreira
Wasser & Salz - Urquell des Lebens
Infectious AIDS : Have We Been Misled?
Peter H. Duesberg
Infectious AIDS : Have We Been Misled?
Ripples in the Zambezi : Passion, Entrepreneurship, and the Rebirth of Local Economies
Ernesto Sirolli
Ripples in the Zambezi : Passion, Entrepreneurship, and the Rebirth of Local Economies
Helmar's slogan

Canopus Marketing cc :: Treasure Chest

Wednesday, 09 August 2006

RSS 2.0 compatible XML Writer Class for PHP and MySQL

Generate your own validated RSS2.0 compatible newsfeed using PHP and MySQL. That's what this code does.

The original work was done by Manuel Lemos and made available via PHPClasses.org. I've used it successfully on many of my sites - until a client requested a feed in RSS 2.0 format.
The one class I could find worked fine locally but failed on the server, so eventually I turned back to the original code by Manuel Lemos, looked up the specs, and then did the editing myself.

The result is a validating feed that you can use for your own purposes.

The beauty of Manuel's code is that you can choose between 0.9, 0.91, 1.0 and (now) 2.0 specs. Remember: the sample in the PHP code is made according to 2.0 specs.

So, if you're a PHP programmer and are looking for a good XML Writer class that conforms to RSS 2.0 specifications, this is it. Feel free to improve on it and share the results with the world.

expand icon  RSS 2.0 compatible XML Writer Class for PHP and MySQL

Posted by Helmar on 09 August 2006
4904 Views | Score: 5.0 | 1 Comment
Canopus Marketing cc :: Treasure Chest

Visitor Comments

Client Feedback

I know you burnt the midnight oil to find this solution. And like always, you did...

We wanted RSS 2.0 and have it now. Thank You!
MeerKatje aka Dorette, Cape Town
20 August 2006 @ 03:11 | Score: 5

Add a comment to "RSS 2.0 compatible XML Writer Class for PHP and MySQL"

PLEASE NOTE: This item is moderated. This means that any comments submitted by you will be reviewed by myself first and only show up afterwards. Thank you for your understanding and participation. - Helmar
Name:
Location:
Email:
Your email will not be shown on the site!
Subject:
Comment:
Rating: Great
Very good
Good
Not so good
Bad
Please spell the following word correctly: 'Cpae Tnow':