Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| peter_s_ratchet_app [2013/07/27 13:18] – created mmuze | peter_s_ratchet_app [2013/07/27 21:08] (current) – [File Download Functionality Option 2] mmuze | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| PHP has a built-in function named **http_send_file** that sends a file to the browser and returns **true** for a success and **false** for a failure. | PHP has a built-in function named **http_send_file** that sends a file to the browser and returns **true** for a success and **false** for a failure. | ||
| - | * [[http:// | + | |
| ====File Download Functionality Option 2==== | ====File Download Functionality Option 2==== | ||
| - | You could create a function that sends the file in chunks and keeps track whether the whole file was sent. | + | You could create a function that sends the file in chunks and keeps track of whether the whole file was sent. |
| < | < | ||
| function readfile_chunked ($filename) { | function readfile_chunked ($filename) { | ||