PHP文件上传脚本-PHP源码
1.fileupload.phpA File Upload Script "; print "size: ". $_FILES['fupload']['size'] ." bytes
"; print $imgstr; } } ?>
"; print "temp name: ".$_FILES['fupload']['tmp_name'] ."
"; print "type: ". $_FILES['fupload']['type'] ."
"; print "error: ". $_FILES['fupload']['error'] ."
"; if ( $_FILES['fupload']['type'] == "image/gif" ) { $source = $_FILES['fupload']['tmp_name']; $target = "upload/".$_FILES['fupload']['name']; move_uploaded_file( $source, $target );// or die ("Couldn't copy"); $size = getImageSize( $target ); $imgstr = "
PHP之友评论