<?php
// NAGLOWEK
   $Plik    = "Certyfikat_UAM.pem";
   $Rozmiar = filesize($Plik);    

   header('Content-Disposition: attachment; filename=Certyfikat_UAM.pem');
   header('Content-Type: application/x-unknown');
   header('Content-Transfer-Encoding: binary'); 
   header('Content-Length: ' . $Rozmiar);

// PLIK	
   if ($fp = fopen($Plik, 'rb'))
      {
      flock($fp, 1);
      echo fread($fp, filesize($Plik));
      flock($fp, 3);
      fclose($fp);
      };		
?> 
