Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata
<?php

$file = "/tmp/testfile";

header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename='" . basename($file) . "'");

readfile ($file);
?>

  • No labels

1 Comment