PHP ?? ??? ??? ?? ????
?? ??? ???? ?? ??? ??? ????. ??? ?????? ?????? ??? ???? ???.
?? ??? ?? type=file? ???? ????? ?? ??? ??????.
?? ??? ????? ???????
<html> <head> <meta charset="utf-8" /> <title>單文件上傳</title> </head> <body> <form action="file.php" method="post" enctype="multipart/form-data"> <input type="file" name="file"> <input type="submit" value="上傳"> </form> </body> </html>
??:
1. ?? ???? ???? post?? ???. get? ?? ?? ???? ? ? ????
2.enctype? multipart/form-data?? ???