hej
du kan oprette en fil der hedder download.php
- $filename = $_GET["f"];
-
- header("Content-length: " . filesize($filename));
- header("Content-type: application/force-download");
- header("Content-type: text/plain");
- header("Content-Disposition: attachment; filename = ".basename($filename));
- header("Content-Transfer-Encoding: binary");
-
-
- if ($fp=fopen($filename, "r")) {
- while(!feof($fp)) {
- echo fgets($fp, 4096);
- }
-
-
- fclose($fp);
- }
og så på din index bruge:
<a href="download.php?f=minfil.php">minfil.php</a>
det er ikke testet ^^