Archive: download

 

Posts Tagged ‘download’


If you want to serve up text files for download (perhaps product feeds etc) then you might like this little snippet. Not only will it force the file to be downloaded but it allows you to specify a custom filename that it should be saved as. PLAIN TEXT PHP: if(isset($_GET['download_file'])){     header("Content-type: application/octet-stream");   [...]



 

Magento Site Upgrade Kevin Mayhew Ltd. required their Magento site to be upgraded from Enterprise 1.7 to the current release. They are looking to do this because the current site is having problems with some of the functionality which can only be correct by upgrading an extension and the extensions latest version is not compatibility [...]



 

If you want to offer a csv feed and want the results to be on demand and like the idea of avoiding messing about righting to files on the server etc, you might like this little manuever. You will notice I'm using a non standard db_query function, just assume that this does all the sensible [...]