Re: implementing downloads with php?
| From: | Jeffry Killen | Date: | Fri, 03 Apr 2015 17:04:50 +0000 |
| Subject: | Re: implementing downloads with php? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324768@lists.php.net to get a copy of this message | ||
On Apr 3, 2015, at 4:01 AM, Christoph Becker wrote:
Jeffry Killen wrote:Thank you all for time, attention, and responses very helpfull JKOn Apr 2, 2015, at 6:33 PM, Sean Greenslade wrote:readfile() does not only read a file, but also echoes it. See its manual page[1], where you also find an example for downloading a file. [1] <http://php.net/manual/function.readfile.php>A quick google turned up this result: http://stackoverflow.com/questions/8485886/force-file-download-with-php-using-headera bunch of headers are sent and then the file is read. But I don't see a print or echo statement in any of the code in the related posts.