Upload files in php. please take a look. Thank you!

Source: Internet
Author: User
Upload files in php. please take a look. Thank you !!! There is really no way... Help! Html.html & lt; form & nbsp; action = & quot; php. php & quot; & nbsp; method = & quot; post & quot; & nbsp; e php uploads files. Thank you !!!
There is really no way... Help!
Html.html


Php. php
If (move_uploaded_file ($ HTTP_POST_FILES ['userfile'] ['tmp _ name'], 'd:/aaa. avi ')){
Echo "Upload successful! ";
} Else {
Echo "Upload failed! ";
}

During my local testing, I can upload more than 10 MB of files. But when I upload a 38 M file, I cannot upload it ....
And I print var_dump ($ HTTP_POST_FILES ['userfile']); but it is NULL.
I also searched a lot of information on the Internet. The setting values in php. ini have been set, that is, they cannot upload large files.
Several important parameters in my php. ini file are as follows:
File_uploads = On
Upload_max_filesize = 60 M
Post_max_size = 80 M
Max_execution_time= 600
Max_input_time= 600
Memory_limit = 10 M

Hope you can help us to see it ....

------ Solution --------------------
Memory_limit = 10 M... => larger


Var_dump ($ HTTP_POST_FILES ['userfile']);
=>$ _ FILES
------ Solution --------------------
Direct use
$ _ File array.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.