당신은 어떤 PHP 페이지를 볼 수있는 PHP 파서가 필요합니다 감사합니다.
<?php
//the file is stored in the server's temporary files folder. The file will live there for as long as the page is loaded for, which is on average... less than 1 second.
//You need to execute all your commands before the end of the page. otherwise the file will be gone!
//To do that, use this:
move_uploaded_file($_FILES['userfile']['tmp_name'], "address")
//where you replace "address" with the location you want on the server.
?>
:
<form action="handler.php" method="post" enctype="multipart/form-data">
<input type="file" name="my_file" />
</form>
당신은 다음과 같이 "handler.php"라는 새로운 페이지를 만들 필요가 :
HTML 페이지 내가 느슨하게 다음과 유사한하는, 가정, 양식을 가지고
PHP 페이지를 실행하려면 PHP 구문 분석기가 필요합니다.
나는 당신이 우리에게 당신이 일을하려고 무엇을 ... – RageZ
임 그냥 W3 스쿨 웹 사이트에서 파일 업로드 섹션의 모든 단계를 수행에 대한 자세한 내용을 제공 할 필요가 있다고 생각합니다. 내 페이지에서 파일을 업로드 할 수있게하려면 html은 잘 작동하지만 웹 사이트에서 더 아래로 이동하면 스크립트를 업로드하고 업로드 된 파일을 저장하는 파일 제한에 PHP 코드가 적용됩니다. 먼저 스크립트 PHP 코드를 업로드하여 HTML 아래에 넣으려고했지만 "파일"이 정의되지 않았다고 알려주며 코드를 변경하지 않았습니다. 웹 사이트에서 코드를 사용했습니다. – BruceyBandit
http : // php .net/manual/ko/features.file-upload.php – hakre