peter_s_ratchet_app

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
peter_s_ratchet_app [2013/07/27 13:18] – created mmuzepeter_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://www.php.net/manual/en/function.http-send-file.php]]+  * [[http://www.php.net/manual/en/function.http-send-file.php]]
  
 ====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.
 <code> <code>
 function readfile_chunked ($filename) {  function readfile_chunked ($filename) { 
  • peter_s_ratchet_app.1374931093.txt.gz
  • Last modified: 2013/07/27 13:18
  • by mmuze