Changeset 1437


Ignore:
Timestamp:
1/1/2010 4:32:55 AM (5 years ago)
Author:
lowjoel
Message:

Don't allocate memory by using file_get_contents, readfile is more efficient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/website/scripts/downloads.php

    r1435 r1437  
    106106            header('Pragma: no-cache'); 
    107107        } 
    108      
    109         echo file_get_contents($downloadFolder . $path); 
     108 
     109        readfile($downloadFolder . $path); 
    110110    } 
    111111}; 
Note: See TracChangeset for help on using the changeset viewer.