>  기사  >  백엔드 개발  >  php文件上传脚本_PHP教程

php文件上传脚本_PHP教程

WBOY
WBOY원래의
2016-07-13 17:46:021009검색

 

最近在学习php,看到了文件上传这块,就简单的写了个php文件上传脚本,可以说是个小马,没什么技术含量,全当练手~

01  

 

02

 

 

03

Php upload shell 

 

04  

 

05

 

 

06   

 

07 Path:
 

 

08   

 

09

 

 

10   

 

11 Please fill in the path of the upload and the filename:

 

 

12   

 

13 Please choose the uploaded files:  

 

14   

 

15

 

 

16   

 

17

 

18   

 

19 if(move_uploaded_file($_FILES['upfile']['tmp_name'],$_POST['choose'])) 

 

20 { 

 

21     echo "The file upload successful"; 

 

22 } 

 

23 else

 

24 { 

 

25     if($_FILES['upfiles']['erro'] != 0 ) 

 

26     echo "The file upload failed,you can try other folder."; 

 

27 } 

 

28   

 

29 ?> 

 

30



 

 

31 Code by Str1ven
 

 

32 Email:str1ven@foxmail.com 

 

33  

 

34

摘自:Str1ven's Blog

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478608.htmlTechArticle最近在学习php,看到了文件上传这块,就简单的写了个php文件上传脚本,可以说是个小马,没什么技术含量,全当练手~ 01 html 02 head 03 tit...
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.