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:52

On Thu, 29 Nov 2007 23:44:43 +0100, Ciaran <cronoklee@hotmail.com> wrote=
:

> Great OK sounds promising. I have set up a test file with
> header("Content-Type: application/rss+xml"); when I visit the page my
> browser is trying to download the php file. Have I done something
> wrong?
>
> http://www.scouttalk.ie/rsstest.php

XML is not (should not) be just like tagsoup HTML: you really have to ta=
ke =

care of correct syntax. Opera says this:
Error!
XML parsing failed
XML parsing failed: syntax error (Line: 2, Character: 33)

Reparse document as HTML
Error:invalid xml-stylesheet processing instruction
Specification:http://www.w3.org/TR/REC-xml/
1: <?xml version=3D"1.0" encoding=3D"utf-8"?>
2: <?xml-stylesheet type=3D"text/css" [>]

So, end with ?>, not with >...

Use a validator in your testing: =

<http://validator.w3.org/feed/check.cgi?url=3Dhttp%3A%2F%2Fwww.scouttalk=
..ie%2Frsstest.php> =

would tell you what it can't process.
-- =

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

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