$dosya = "ahmetpasha.txt";
$boyut = filesize($dosya);
echo "$dosya adlı dosyanın boyutu $boyut byte.";
bu şekilde bi deneyelim ?