Re: How to create RSS feeds with PHP?
| From: | Merlin | Date: | Thu, 30 Mar 2006 10:34:14 +0000 |
| Subject: | Re: How to create RSS feeds with PHP? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232909@lists.php.net to get a copy of this message | ||
chris smith schrieb:
On 3/30/06, Merlin <news.groups@web.de> wrote:sorry that was an XML problem. Stupid me :-) Here is the solution for anybody having the same problem: <img><xsl:attribute name="src"><xsl:value-of select="rss/channel/image/url" /></xsl:attribute><xsl:attribute name="rss/channel/image/width"><xsl:value-of select="rss/channel/image/width" /></xsl:attribute><xsl:attribute name="height"><xsl:value-of select="rss/channel/image/height" /></xsl:attribute></img>chris smith schrieb:Try it as a full url. -- Postgresql & php tutorials http://www.designmagick.com/On 3/28/06, Merlin <news.groups@web.de> wrote:Hi Chris, thank you for that hint. That worked excellent. There is just one small thing I can not figure out. Including images into that feed. Using your mentioned classes I have following code: $rss_channel = new rssGenerator_channel(); $rss_channel->title = 'test'; $rss_channel->link = 'test.com'; $rss_channel->description = 'test'; $rss_channel->language = 'en-us'; $rss_channel->generator = 'RSS Feed Generator'; $rss_channel->managingEditor = 'info@bla.com'; $rss_channel->webMaster = 'webmaster@bla.com'; for ($i=0;$i<=$results_num;$i++){Hi there, I am wondering if there are already tools out there which do create RSS feeds on the fly with the help of PHP. My goal would be to create RSS dynamicly out of a LAMP App. to syndicate the results. Are there any tools you know about?This might get you started: http://www.phpclasses.org/browse/package/2957.html -- Postgresql & php tutorials http://www.designmagick.com/$item = new rssGenerator_item(); $item->title = $ad[title][$i]; $item->description = $ad[text][$i]; $item->link = $ad[link][$i]; $item->pubDate = $ad[date][$i]; $rss_channel->items[] = $item;$rss_image = new rssGenerator_image(); $rss_image->url = '/g/p/logo.gif';