if (isset($_GET["id"]) && $_GET["id"] != "")
	{
		$myFile = "uploads/".$_GET["id"];
		$fh = fopen($myFile, 'w') or die("can't open file");
		fclose($fh);
		unlink($myFile);

		$comfirmmess = "<p>Your file has been successfully removed from host</p>";

		$template->set_filenames(array("confirm" => "confirm.html"));     
		$template->assign_vars(array(
			'CONFIRM' => "Your file has been successfully removed from host",
			'COMFIRMMESS' => $comfirmmess
		));
elimde böyle bir upload edilen dosyayı silme kodu var.

benim istediğim silme değilde upload edilen dosyayı indirme kodu. birde belli bir süre sonra indirmeye izin vericek. örnek: indirme sayfasında 30saniye geçmeden dowload linki gözükmicek.

böyle bir kodu yazabilecek arkadaşlar lütfen yardımcı olun...