我正在将网站从具有WS2003,IIS6,PHP 5.2的服务器迁移到具有WS2008,IIS7和PHP 5.3的服务器
<?PHP if(isset($_POST["Upload"])){ echo "<pre>"; print_r($_POST); print_r($_FILES); echo "</pre>"; } ?> <form action="tester.PHP" method="post" enctype="multipart/form-data"> <input type="hidden" name="Upload" value="1" /> <input type="hidden" name="MAX_FILE_SIZE" value="4500000" /> <input type="file" name="artImage" id="artImage" /> <input type="submit" /> </form>
在旧服务器上工作得很好,但在新服务器上,它无缘无故地切掉了第一个字母.我不知道它是IIS设置还是PHP设置.
输出:
Array ( [Upload] => 1 [MAX_FILE_SIZE] => 4500000 ) Array ( [artImage] => Array ( [name] => easons_Change_(HD_Ready).jpg [type] => image/pjpeg [tmp_name] => C:\Windows\Temp\PHP99.tmp [error] => 0 [size] => 498879 ) )
Array ( [Upload] => 1 [MAX_FILE_SIZE] => 4500000 ) Array ( [artImage] => Array ( [name] => Seasons_Change_(HD_Ready).jpg [type] => image/pjpeg [tmp_name] => C:\WINDOWS\Temp\PHP6835.tmp [error] => 0 [size] => 498879 ) )