Sziasztok.
A php problémám a következő lenne :
Lenne egy download.php file azt szeretném vele ,hogy a
hxxp://domain.hu/download.php?file=ketto -re elkezdje letölteni a a.rar -t.
hxxp://domain.hu/download.php?file=harom -ra elkezdje letölteni a b.rar -t.
<?
$valami = $_GET["file"]
$ketto = "http://host2.hu/a.rar";
$harom = "http://host3.hu/b.rar";
$fileurl= "$valami";
header('Content-Description: File Transfer');
header("Content-Type: application/force-download");
header('Content-disposition: attachment; filename='.basename($fileurl));
readfile("$fileurl");
?>
Hasonló témák:
Könyvjelzők