文件上传
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form action="zuoyef.php" method="post" enctype="multipart/form-data" >
<input type="file" name="upfile"/><br>
<input type="submit" value="上传" />
</form>
</body>
</html>
<?php
$upfile=$_FILES['upfile'];
if ($upfile['error']==0) {
if ($upfile['size']>=1024*64) {
$dizhi="D:\phpstudy_pro\qtc20191440850".$upfile['name'];
move_uploaded_file($upfile['tmp_name'],$dizhi);
}
}
?>
<img src="<?php $dizhi ?>" >