|
Posted by charliefortune on 09/25/07 19:15
I am fetching various xml documents like this
$merch = substr($key,1);
$feed = file_get_contents($_POST['data_url'.$merch]);
$fp = fopen("./feeds/feed".$merch.".txt","w+");
fwrite ($fp,$feed);
fclose ($fp);
and then parsing them for products. This generally works, but there
are some that return zero items, even though I know that's not true.
When I look at the 'empty' documents, they conrtain no line breaks.
a. would this cause the parser (native php parser) problems ?
b. is it a result of the way that i fetch them ?
thanks
[Back to original message]
|