我得到了submting圖像的一個例子,提交圖像爲dB http://www.anyexample.com/programming/php/php_mysql_example__image_gallery_%28blob_storage%29.xml#search 上面的這個php腳本在MAMP上執行時,效果非常好。但是當我用XAMPP在PC上執行時,我無法正常工作,因此在XAMPP上出現了403錯誤。檢查XAMPP安裝中的php.ini文件,並閱讀短標籤= on之類的內容。也注意到許多人使用
<form action="<?php echo htmlentities($_SERVER['PHP_SELF']);?>" method="post"
</form>
的例子insted的的
<form action="<?=$PHP_SELF?>" method="POST" enctype="multipart/form-data">
上:HTTP://www.anyexample.com/programming/php/php_mysql_example__image_gallery_%28blob_storage%29.xml#search 任何線索讓它與XAMPP一起在PC上工作。
在此先感謝JPA
如果您提交相同的頁面,只是單純的不申報的行爲。 – ajreal
ajreal - 但是又如何,如果腳本是基於下面的腳本將執行上傳或刪除圖像的操作:如果($ _ SERVER [「REQUEST_METHOD」] ==「POST」) –
不要誤會,除去動作只有,而不是方法 – ajreal