12-08-2007, 03:18 PM
|
#6 (permalink)
|
|
The Reckoner
Join Date: Sep 2007
Posts: 437
Thanks: 22
|
There is one difference, quite important too. By default, with file_get_contents there is no limit on the buffer, if you tell PHP to "file_get_contents" a 50 MB file, it will, or it'll try anyway. As of PHP 5.1.0 you can change this behavior using the additional parameters set in the function call.
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
|
|
|
|