Posted by Colin McKinnon on 10/05/06 19:57
Arjen wrote:
> howachen@gmail.com schreef:
>> I have many text file with 1 to 2MB in size
>>
>> currently, i use the method:
>>
>> echo file_get_contents( $file_path );
>>
>>
>> are there any better method?
>>
>> thanks.
>
> Yup .. stream the file.
>
> file($file_path);
You'll run out of memory very quickly using file(...) or
file_get_contents(...) on big files.
C.
Navigation:
[Reply to this message]
|