欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php如何解決無法上傳大于8M的文件問題

 更新時(shí)間:2014年03月10日 17:25:08   作者:  
這篇文章主要介紹了php如何解決無法上傳大于8M的文件問題,需要的朋友可以參考下
開發(fā)一個(gè)文件上傳共享網(wǎng)站,曾想使用下面的代碼實(shí)現(xiàn)文件上傳的功能:
復(fù)制代碼 代碼如下:

<form enctype="multipart/form-data" action="add_file.php" method="post">
<fieldset><legend>Fill out the form to upload a file:</legend>
<?php // Create the inputs.
for ($i = 0; $i < $counter; $i++) {
echo '<b>File:</b> <input type="file" name="upload' . $i . '" />

<b>Description:</b> <textarea name="description' . $i . '" cols="40" rows="5"></textarea>


';
}
?>
</fieldset>
<input type="hidden" name="submitted" value="TRUE" />
[align=center]<input type="submit" name="submit" value="Submit" />[/align]
</form>

在實(shí)際執(zhí)行過程中發(fā)現(xiàn)上傳稍微大一些的文件時(shí),顯示File couldn't be moved。
數(shù)據(jù)庫里顯示文件名稱,不顯示大小。
而上傳大于8M的文件時(shí),頁面根本沒有反應(yīng)。

相關(guān)文章

最新評(píng)論