[H-GEN] Pdf-php puzzle

Byron Ellacott bje at apnic.net
Mon Sep 27 19:14:52 EDT 2004


Michael Anthon wrote:
> Also, beware using readfile.  I don't recall the exact problem with it 
> but I believe it works by reading the complete file into memory then 
> writing it out again.  Not good for big files since you can hit the php 
> memory limit and also if you are reading across a slow link (say NFS 
> mounted files) then the client end can time out and close the connection 
> if it receives no data for some time.

It doesn't seem to be that PHP is an appropriate tool for generating 
non-HTML content at all.  YMMV.  Bear in mind I don't consider PHP to be 
a good tool for generating HTML content, either, in most circumstances.

-- 
bje




More information about the General mailing list