You are here: Re: php with rss « PHP Programming Language « IT news, forums, messages
Re: php with rss

Posted by Rik Wasmus on 11/29/07 22:19

On Thu, 29 Nov 2007 23:06:33 +0100, Ciaran <cronoklee@hotmail.com> wrote:

> On Nov 29, 9:47 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>> On Thu, 29 Nov 2007 22:33:23 +0100, Ciaran <cronok...@hotmail.com>
>> wrote:
>> > Sorry I should have mentioned - I'm very familiar with php and sql so
>> > I'm really just asking if its possible in theory. All I need is a
>> > general overview of how it works.
>>
>> Yes. Instead of outputting HTML as is most common, just output the XML
>> needed for an rss feed. Several XML packages can make it easier for you,
>> no strict requirement though: simple echo/print would do. So examine the
>> format in one of thousands of rss tutorials, make sure your PHP output
>> conforms to that format and you're done. (Well, output a right
>> content-type header, but that's it).
>
> oh cool, I wasn't expecting it to be that easy! So rss readers don't
> have any problem looking up a .php file?

Well, as long as the php file runs. Browser, rss-readers, soapclients,
etc. have no way of knowing for sure you use PHP, and they don't really
care. As long as you throw out a valid content-type & output they're happy.
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация