首页 >php教程 >PHP源码 >PHP 文件上传处理

PHP 文件上传处理

PHP中文网
PHP中文网原创
2016-05-25 17:16:081113浏览




 File Uploader



 

File Upload


 Select a file to upload:


 

 
 

 
 







2. [代码]uploader.php 跳至


if( $_FILES['file']['name'] != "" )
{
copy ( $_FILES['file']['tmp_name'],
"C:/Apache/htdocs/" . $_FILES['file']['name'] )
or die( "Could not copy file" );
}
else
{
die( "No file specified" );
}

?>




 Upload complete




 

File upload succeeded...


 

     
  • Sent:

  •  
  • Size: bytes

  •  
  • Type:

  •  


 Click here to view file





声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn