Re: implementing downloads with php?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Apr 3, 2015, at 4:01 AM, Christoph Becker wrote:

Jeffry Killen wrote:


On Apr 2, 2015, at 6:33 PM, Sean Greenslade wrote:
A quick google turned up this result:

http://stackoverflow.com/questions/8485886/force-file-download-with-php-using-header

a 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.

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>


Thank you all for time, attention, and responses
very helpfull

JK


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux