View Single Post
Old 12-08-2007, 03:18 PM   #6 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

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.
Karl is offline  
Reply With Quote