You are here: Re: Include XML file..... « PHP Language « IT news, forums, messages
Re: Include XML file.....

Posted by Oli Filth on 01/12/06 03:10

Francis Sylvester said the following on 11/01/2006 18:22:
> I'm having problems including an RSS feed from a simple php script as
> follows:
>
> <?php
> include('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml');
> ?>
>
> Basically this script generates nothing instead of the XML I was expecting.
> Is this possible in PHP or am I doing something wrong? Including html urls
> works without any problems.
>

Check your php.ini file for short_open_tag = Off. If it's on, then PHP
treats <? ?> as PHP delimiters, and hence sees the opening <?xml ... ?>
declarations as PHP code, which will screw things up.


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

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