Reply to Re: create rss xml

Your name:

Reply:


Posted by Satya on 02/10/07 06:00

On Feb 9, 8:56 am, "caine" <thensiuj...@gmail.com> wrote:
> > echo "<?xmlversion=\"1.0\" standalone=\"yes\"?>";
>
> > Or
>
> > echo '<?xmlversion="1.0" standalone="yes"?>'
>
> Not working again. Got the error statement like this:
>
> XML Parsing Error: xml declaration not at start of external entity
> Location:http://localhost/phprss.php
> Line Number 7, Column 1: <?xml version="1.0" standalone="yes"?>
> ^

-------------------
I will suggest these changes in your script:

First of all you will change <xml ... > to <?xml ... >.
Second may be short tag will create problem.
So for above line do something like this: echo '<?xml ....>';
and you are using header() below lot of html. Use header at top or use
ob_start(); at top.
I think you do not need <html>, <head>, <title>, <body>, etc. all
above header() line. So remove all these from bottom of the file.

[Back to original 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

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