addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Dallas PHP Message Board › RSS + PHP

RSS + PHP

A former member
Post #: 1
For everyone interested in RSS / XML, this class is BY FAR the simplest way to get started:

http://www.phpclasses...­

I think this class (EasyRSS) has some ~quoting/correctness~ issues (ie: some of the RSS/Atom/XML people argue about what needs to be quoted, when, and where) ... but the following is as easy as it can be. :^) ... once you've gotten used to using EasyRSS, you can move on to more complicated classes / libraries.

===================

$rss_array = array(
"encoding"=>"UTF-8"­,
"language"=>"en-us"­,
"title"=>"My blog", // This field is mandatory
"description"=>"I am using EasyRSS to create this stuff", // This field is mandatory
"link"=>"http://www.sistemos.c...­, // This field is mandatory
"items"=>array(
0=>array(
"title"=>"My first blog", // This field is mandatory
"description"=>"Hello!­ This is my first time using EasyRSS", // This field is mandatory
"pubDate"=>"",
"link"=>"http://localhost/firs...­
),
1=>array(
"title"=>"Exceptions of using XSL stylesheet", // This field is mandatory
"description"=>"When using XSL stylesheet, remember that Mozilla does not parse HTML tags. Though IE6 accepts HTML <b>tags</b> and parses them, Mozilla does not (and will never do). So using disable-output-escaping="yes" parameter in <xsl:text> and <xsl:value-of> would be effective in MSIE only.", // This field is mandatory
"pubDate"=>1093387161, // pubDate MUST BE the unix timestamp
"link"=>"http://bugzilla.mozil...­
)
)
);
header("Content-type: application/xml");
// Second parameter is not required
echo $rss->rss($rss_array, "rss.xsl");
A former member
Post #: 5
Bump:

http://www.mnot.net/r...­

...good non-php overview of "what's going on" when you're using RSS.

--Robert
Powered by mvnForum

Our Sponsors

  • Axxess

    An awesome space to meet and other perks!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy