I just dont understand why you need filedownload.php. It doesnt do anything at all. It takes an input and outputs it back.