Reply to Re: file_get_contents VS fread

Your name:

Reply:


Posted by BinnyVA on 11/07/06 12:41

Hi,

> are there any advantage in replacing all fread() operations with
> file_get_contents() ?

You need the handle provided by fopen() for many operations
like fgetcsv().

Another advantage of fread() is that you can read just a said
amount of bytes from a line - you don't have to read the full
file at once.

But if you just need the full contents, file_get_contents()
is an easier option.

--
Binny V A
http://www.bin-co.com/

[Back to original 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

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