Simple PHP file download / application page


I'm looking for a simple PHP-based download or "request" script that works in a fashion of download.php?file=zip.php

Ideally the page would say "you are requesting .zip" then wait five seconds before downloading file. Is this possible?

Only because this is easy, I will write the codes but SO is not for that, just if you have a bugg with your previously-written code.

    $filename = $_GET["file"];
        echo "You are downloading ".$filename;
        echo "<script type='text/javascript'>top.location='".$filename."';</script>";
        echo "You havent selected a file to download";

Imagining the URL is download.php? it would output:

You are downloading
<script type='text/javascript'>top.location='';</script>