ftp_size
    (PHP 3 >= 3.0.13, PHP 4, PHP 5)
ftp_size -- 指定したファイルのサイズを返す
説明
int 
ftp_size ( resource ftp_stream, string remote_file )
   ftp_size() は指定されたファイルのサイズを
   バイト数で返します。
  
注意: 
    すべてのサーバがこの機能をサポートしているわけではありません。
   
パラメータ
   
- ftp_stream
 
       FTP 接続のリンク ID 。
      
- remote_file
 
       リモートファイル。
      
 
  返り値
   成功した場合はファイルのサイズを、エラー時には -1 を返します。
  
例
   
例 1. ftp_size() の例 
<?php
  $file = 'somefile.txt';
  // 接続を確立する $conn_id = ftp_connect($ftp_server);
  // ユーザ名とパスワードでログインする $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
  // $file のサイズを取得する $res = ftp_size($conn_id, $file);
  if ($res != -1) {     echo "size of $file is $res bytes"; } else {     echo "couldn't get the size"; }
  // 接続を閉じる ftp_close($conn_id);
  ?>
 |  
  |