我那樣也試了,不行,我的錯誤是:
Warning: stat failed for /images/download/aaa.txt
(errno=2 - No such file or directory) in /usr/home/ftftp/so_website/downloadfile.php on line 9
Warning: stat failed for /images/download/aaa.txt
(errno=2 - No such file or directory) in /usr/home/ftftp/so_website/downloadfile.php on line 9
$size=filesize($filename); change to
$size=filesize("..".$filename);