<INPUT TYPE = "hidden" NAME = "MAX_FILE_SIZE" VALUE ="1000000"
这是限制一兆的还有就是PHP.INI里可以限制上传大小

解决方案 »

  1.   

    $df = disk_total_space("/image");
      

  2.   

    disk_total_space
    (PHP 4 >= 4.1.0)disk_total_space -- Returns the total size of a directory
    Description
    float disk_total_space ( string directory)
    Given a string containing a directory, this function will return the total number of bytes on the corresponding filesystem or disk partition. 
      

  3.   

    $file=$HTTP_POST_FILES["file"];
    $file_size=$file['size'];上传文件的大小