You are here: will no line breaks in xml file cause a problem ? « PHP Programming Language « IT news, forums, messages
will no line breaks in xml file cause a problem ?

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

 

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

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