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/
Navigation:
[Reply to this message]
|