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