文件上传php

文件上传


<!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 ?>" >

文件上传php
文件上传php
文件上传php

上一篇:我掏空了各大搜索引擎,给你整理了188道Java面试题,满满干货记得收藏


下一篇:PHP在使用move_uploaded_file函数移动文件时一直失败