Re: making html download something?
I don't understand what makes the code in 7 much different from using the download attribute. For one, that method is inefficient and requires the size of the file in bytes of memory available because your reading the entire file into memory. And that risks going over the memory limit that PHP sets. And, two, your opening it in "read" mode, not "read-binary" mode. No point in adding code that's pointless when the download attribute is there in HTML.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector