change download from readfile to file_get_contents