You are here:  » EMARKET SUDDEN ERROR

Support Forum



EMARKET SUDDEN ERROR

Submitted by paschalis on Fri, 2008-02-29 11:19 in

Dear Guys,

while some months ago the parser was working OK, suddently because i changed server the parser didn't work.

The code i entered in my page is:

<?php
  
require("MagicParser.php");
  function 
myRecordHandler($record)
  {
    
// This is where you write your code to process each record, such as loading a database
    // You can display the record contents using PHP's internal print_r() function:
    
print_r($record);
    
// The following code will print out each field in your sample data:
    
print $record["productid"];
    print 
$record["product"];
    print 
$record["category"];
    print 
$record["price"];
    print 
$record["producturl"];
    print 
$record["imageurl"];
    print 
$record["description"];
  }
  
MagicParser_parse("http://www.e-shop.gr/sql/feed/products_desc_bks1.csv","myRecordHandler","csv|124|1|0");
?>

WHEN i enter the: print "Error: ".MagicParser_getErrorMessage();

the error appeared is: Error: could not open http://www.e-shop.gr/sql/feed/products_desc_bks1.csv

Please help me because it is urgent.

thank you

Submitted by support on Fri, 2008-02-29 11:22

Hi,

This is almost certainly because your new server is not currently configured to allow PHP to open URLs. Please see the following thread for more info and link to the PHP documentation about this:

http://www.magicparser.com/node/189

Cheers,
David.