Ec (2); & lt ;? Phpheader (& quot; content-Type: texthtml; charsetgb2312 & quot;); $ uptypesarray (imagejpg, & nbsp; Upload file Type list & nbsp; imagejpeg, & nbsp; imagepng, & nbsp; imagepjpeg, & nbsp; imageg script ec (2); script
Header ("content-Type: text/html; charset = gb2312 ");
$ Uptypes = array ('image/jpg ', // list of uploaded file types
'Image/jpeg ',
'Image/png ',
'Image/pjpeg ',
'Image/gif ',
'Image/bmp ',
'Application/x-shockwave-flash ',
'Image/x-png ',
'Application/msword ',
'Audio/x-ms-wm ',
'Audio/mp3 ',
'Application/vnd. rn-realmedia ',
'Application/x-zip-compressed ',
'Application/octet-stream ');
$ Max_file_size = 20000000; // size limit of uploaded files, in bytes
$ Path_parts = pathinfo ($ _ SERVER ['php _ SELF ']); // obtain the current path
$ Destination_folder = "up/"; // File Upload path
$ Watermark = 0; // whether to add a watermark. (1 indicates adding a watermark, and others indicates not adding a watermark );
$ Watertype = 1; // watermark type (1 is text, 2 is image)
$ Waterposition = 1; // watermark position (1 indicates the lower left corner, 2 indicates the lower right corner, 3 indicates the upper left corner, 4 indicates the upper right corner, and 5 indicates the center );
$ Waterstring = "newphp. site. cz"; // watermark string
$ Waterimg = "xplore.gif"; // watermark image
$ Imgpreview = 1; // whether to generate a preview image (1 is generated, others are not generated );
$ Imgpreviewsize = 1/2; // thumbnail Ratio
?>