我嘗試在一個隱藏的輸入後base64編碼的圖像(〜500KB)和我得到的是一個錯誤發佈base64編碼文件的問題
501 Method Not Implemented
GET to /test.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我的代碼
<?php error_reporting(E_ALL) ?>
<html>
<head></head>
<body>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
<input type="hidden" name="image" value="{base64 encoded image}">
<input type="submit" name="" value="OK">
</form>
<?php if($_POST) {
echo '<pre>'.print_r($_POST, true).'</pre>';
} ?>
</body>
</html>
PS。在本地主機上一切正常。
感謝您的幫助。
它是圖像的錯嗎? – oneat 2010-09-13 16:26:55
不支持GET/test.php嗎?但是你說你正在做'POST'? – 2010-09-13 16:29:31
@oneat No.我只是測試,所以我的代碼只是形式和print_r($ _ POST); – kat 2010-09-13 16:31:48