I wrote my own download script for my site a long time ago (1 year ago) but i'm using just the header php function. That is the only one I actually understand.
header -- Send a raw HTTP header
I've seen some people use the readfile and fopen function (especially to force a download dialog box)...I read up on them on php.net and I don't quite understand how they open files across domains. Says something about a url wrapper and I'm unclear on what that is. Does anyone know what the wrappers do exactly, it seems both fopen and readfile use them. Does this read them through the server and then send them to the client via a stream...if that is the case, that means its only worth using for files hosted on the same server. Or do I have this all wrong...Can anyone shine some light on the difference between fopen, fread, and header are.
Thanks for any help,
Dave