You are here: Re: [PHP] fread problem « PHP « IT news, forums, messages
Re: [PHP] fread problem

Posted by Curt Zirzow on 10/21/61 11:36

On Mon, Jan 02, 2006 at 09:35:21PM +0100, Mario de Frutos Dieguez wrote:
> Hi!
>
> I have a problem using fread with a XML document. When i read some nodes
> with a great amount of text it cuts in the same place of the text. There
> are any limitation of text or something? I have in the php.ini the amount
> of memory in 256M.

The limitation is what you specify in your fread's second argument.
If I understand the problem you are incrementally reading a file
that is parsed for matching begin and ending elements, so if you
have a document like:

<anode>
// 2048 characters of data
</anode>

And you do a:

$line = fread($fp, 2048);

You wont get the closing element within the fread.

Curt.
--
cat .signature: No such file or directory

 

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

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