![]() Meanwhile "stream_copy_to_stream" seems to utilize the same amount of memory as "readfile". It does work, but you may encounter memory exhaustion using "fread". Some browsers may work without quotation, but for sure not Firefox and as Mozilla explains, the quotation of the filename in the content-disposition is according to the RFCįlobee.at. shared "readfile_chunked" function. Header('Content-Disposition: attachment filename="'.basename($file).'"' ) Header('Content-Disposition: attachment filename='.basename($file)) īut the correct way to set the filename is quoting it (double quote): In the examples (99% of the time) you can find Just a note for those who face problems on names containing spaces (e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |