You are here: fetching xml file, it has no line breaks = problem « All PHP « IT news, forums, messages
fetching xml file, it has no line breaks = problem

Posted by charliefortune on 09/25/07 18:22

I am fetching some xml files and parsing them using the built in
parser in php. Some of them work fine and i can extract what i need,
but some seem to return nothing, even when I know there is stuff in
there. Looking at the files, I have noticed that the ones that don't
work contain no line breaks. They are all fetched in the same way,
using

$merch = substr($key,1);
$feed = file_get_contents($_POST['data_url'.$merch]);
$fp = fopen("./feeds/feed".$merch.".txt","w+");
fwrite ($fp,$feed);
fclose ($fp);

, so it must be the way they are authored.

Would a lack of line breaks cause the parser any problems please ?

 

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

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