upload 1 htm form actionupload 1 php enctypemultipartformdata

  • Slides: 8
Download presentation

รบแฟมขอมล (upload 1. htm) >form action=upload 1. php enctype="multipart/form-data " method=post< >input type=file name=uf<

รบแฟมขอมล (upload 1. htm) >form action=upload 1. php enctype="multipart/form-data " method=post< >input type=file name=uf< >input type=submit< />form< http: //www. thaiall. com/php Page: 2

นำแฟมเขาเครอง (upload 1. php) ? > if (isset($_FILES["uf"]["name} (([" $ nm = $_FILES["uf"]["name; ["

นำแฟมเขาเครอง (upload 1. php) ? > if (isset($_FILES["uf"]["name} (([" $ nm = $_FILES["uf"]["name; [" if(copy($_FILES["uf"]["tmp_name"], ". /". $nm(( echo "upload : process; " else echo "upload : error; " { <? ขอมลจาก http: //www. thaiall. com/php/indexo. html http: //www. thaiall. com/php Page: 3

รบแฟมขอมลและชอให >form ม (upload 2. htm) action=upload 2. php enctype="multipart/form-data " method=post< >input type=file

รบแฟมขอมลและชอให >form ม (upload 2. htm) action=upload 2. php enctype="multipart/form-data " method=post< >input type=file name=uf< >input name=newnm< >input type=submit< />form< http: //www. thaiall. com/php Page: 4

นำแฟมเขาเครอง (upload 2. php) ? > if (isset($_FILES["uf"]["name} (([" $ nm = $_REQUEST["newnm; ["

นำแฟมเขาเครอง (upload 2. php) ? > if (isset($_FILES["uf"]["name} (([" $ nm = $_REQUEST["newnm; [" if(copy($_FILES["uf"]["tmp_name"], ". /". $nm(( echo "upload : process; " else echo "upload : error; " { <? ขอมลจาก http: //www. thaiall. com/php/indexo. html http: //www. thaiall. com/php Page: 5

รบแฟมขอมล (upload 3. htm) >form action=upload 3. php enctype="multipart/form-data " method=post< >input type=file name=uf

รบแฟมขอมล (upload 3. htm) >form action=upload 3. php enctype="multipart/form-data " method=post< >input type=file name=uf 1< >input type=file name=uf 2< >input type=submit< />form< http: //www. thaiall. com/php Page: 6

นำแฟมเขาเครอง (upload 3. php) ? > if (isset($_FILES["uf 1"]["name} (([" $ nm = $_FILES["uf

นำแฟมเขาเครอง (upload 3. php) ? > if (isset($_FILES["uf 1"]["name} (([" $ nm = $_FILES["uf 1"]["name; [" if(copy($_FILES["uf 1"]["tmp_name"], ". /". $nm(( echo "upload 1 : process<br; "< $ nm = $_FILES["uf 2"]["name; [" if(copy($_FILES["uf 2"]["tmp_name"], ". /". $nm(( echo "upload 2 : process<br; "< { <? ขอมลจาก http: //www. thaiall. com/php/indexo. html http: //www. thaiall. com/php Page: 7

ลบแฟมดวย Shell_exec ? > echo shell_exec("del x. jpg; (" <? http: //www. thaiall. com/php

ลบแฟมดวย Shell_exec ? > echo shell_exec("del x. jpg; (" <? http: //www. thaiall. com/php Page: 8