My php download script seems to download files alright , but when I tried to open them I realize they are incomplete. I know this because the download file size is always 1kb. The original is about 121 kb.
I tried both "file_get_content($FilePath") and "readfile($FilePath)" but none works.
I have attached my script here.