download php code example

Example 1: php 5 windows

pub   2048D/5DA04B5D 2012-03-19
      Key fingerprint = F382 5282 6ACD 957E F380  D39F 2F79 56BC 5DA0 4B5D
uid                  Stanislav Malyshev (PHP key) <smalyshev@gmail.com>
uid                  Stanislav Malyshev (PHP key) <stas@php.net>
uid                  Stanislav Malyshev (PHP key) <smalyshev@sugarcrm.com>

Example 2: php download script

<?php
/*Actual filename = 'attachment.zip' (Unknown to the viewers).
When downloaded to be saved as 'mydownload.zip'.
*/
$filename='mydownload.zip';
@header("Content-type: application/zip");
@header("Content-Disposition: attachment; filename=$filename");
echo file_get_contents('attachment.zip');
?>

Tags:

Php Example