You are here:  » Problem parsing my feed


Problem parsing my feed

Submitted by ariel on Sat, 2007-01-06 01:22 in

Hi

I can't get this feed to parse. Just get a blank page returned.

<?php
  require("MagicParser.php");
  function myRecordHandler($record)
  {
    // This is where you write your code to process each record, such as loading a database
    // Here we just display the record contents using PHP's internal print_r() function
    print_r($record);
  }
  MagicParser_parse("http://investor.itg.com/phoenix.rss?c=100516&p=rssall","myRecordHandler","xml|RSS/CHANNEL/ITEM/");
?>

Thanks!
Ariel

Submitted by ariel on Sat, 2007-01-06 01:49

I did get it to work on my yahoo hosted site. Is this a problem with URL wrappers not being enabled on the other server?

Submitted by support on Sat, 2007-01-06 04:48

Hi,

Yes - if a request for a URL works on one server but not on another then it is almost certainly ULR wrappers not being enabled. Check the following page for more information:

http://uk2.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen

Cheers,
David.