|
Posted by howachen on 10/05/06 08:06
howachen@gmail.com 寫道:
> 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.
gzip take time, if many people access the page, my server will be
killed....
what i want to look for is if any method can send the file to apache
for display with getting back the content to the php first, i.e. i want
streaming, no matter the size of the file, even 1GB
echo file_get_contents( $file_path ); // no good, as content will be
passed back in the STACK during function call
// i want sth like...streaming
print_file_to_client( $file_path );
[Back to original message]
|