You are here: Re: PHP generated RSS « All PHP « IT news, forums, messages
Re: PHP generated RSS

Posted by Oli Filth on 09/28/54 11:16

Nullcode wrote:
>
> Thanks for all the help. I modified the content-type and still no joy.
> What I then did was remove the <?xml version tag incase the <? was
> conflicting with the PHP. Turns out it was :D I figured that it probably
> wouldnt validate then, but it did. So all is working perfectly :D
>

In that case, you have the short_open_tag directive enabled, which
allows <? to work as a PHP code delimiter as well as <?php. In your
situation, you really should have the <?xml version=... encoding=...?>
declaration, even if it works ok in Firefox without it. Therefore, you
should disable short_open_tag if you have access to your PHP config.


--
Oli

 

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

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