vladax
Новичок
The requested method POST is not allowed
upload.html
------------------------
<html><body>
<FORM ENCTYPE="multipart/form-data" ACTION="upload2.phtml" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
Имя файла: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Отправить">
</FORM>
</body></html>
upload2.phtml
--------------------------
<? move_uploaded_file($userfile, "/upload/"); ?>
Result
---------------------------
Method Not Allowed
The requested method POST is not allowed for the URL /upload2.phtml
Apache/1.3.27 Server at www.*****.ru Port 80
The Question is
-------------------------
Why the hell?
upload.html
------------------------
<html><body>
<FORM ENCTYPE="multipart/form-data" ACTION="upload2.phtml" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
Имя файла: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Отправить">
</FORM>
</body></html>
upload2.phtml
--------------------------
<? move_uploaded_file($userfile, "/upload/"); ?>
Result
---------------------------
Method Not Allowed
The requested method POST is not allowed for the URL /upload2.phtml
Apache/1.3.27 Server at www.*****.ru Port 80
The Question is
-------------------------
Why the hell?