Home > Backend Development > PHP Tutorial > php上传文件,麻烦高手再看一下。多谢!

php上传文件,麻烦高手再看一下。多谢!

WBOY
Release: 2016-06-13 10:02:32
Original
709 people have browsed it

php上传文件,麻烦高手再看一下。谢谢!!!
实在没有办法。。。求助!
html.html


   
   
   


php.php
if(move_uploaded_file($HTTP_POST_FILES[ 'userfile '][ 'tmp_name '], 'D:/aaa.avi ')){
echo   "上传成功! ";
}else{
echo   "上传失败! ";
}

我在本机测试的时候,上传10多M的文件还可以。可当我上传一个38M的文件时,却上传不了。。。。
而且我打印var_dump($HTTP_POST_FILES[ 'userfile ']);却是NULL。
在网上也搜了很多资料。关于php.ini里面该设置的值都设置过了,就是上传不了大文件。
我的php.ini文件几个重要参数是这样的:
file_uploads   =   On
upload_max_filesize   =   60M
post_max_size   =   80M
max_execution_time   =   600
max_input_time   =   600
memory_limit   =   10M

希望大虾们帮忙看看。。。。

------解决方案--------------------
memory_limit = 10M .... => 更大


var_dump($HTTP_POST_FILES[ 'userfile ']);
=> $_FILES
------解决方案--------------------
直接用
$_File数组。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template