html head title test /title /head body form name="upload" method="post" action=" action=save" enctype="multipart/form-data" input type="file" name="attach[]" / input type="file" name="attach[]" / input type="submit" name="submit" value="上 傳" / /form /body /html upload上傳類文件如下: 復制代碼 代碼如下:class upload { var $dir; //附件存放物理目錄 var $time; //自定義文件上傳時間 var $allow_types; //允許上傳附件類型 var $field; //上傳控件名稱 var $maxsize; //最大允許文件大小,單位為KB
var $thumb_width; //縮略圖寬度 var $thumb_height; //縮略圖高度
var $watermark_file; //水印圖片地址 var $watermark_pos; //水印位置 var $watermark_trans;//水印透明度
if (function_exists('ImageAlphaBlending')) ImageAlphaBlending($temp_wm,True); //設定圖像的混色模式 if (function_exists('ImageSaveAlpha')) ImageSaveAlpha($temp_wm,True); //保存完整的 alpha 通道信息