Php cannot get $ _ FILES.

Source: Internet
Author: User
The file address is aa. php. After selecting the file, I submitted the file. The output result is as follows: why !! I am sleepy for an afternoon. The uploaded images are very small, and there is no INI file on the mac. Thank you very much.

The file address is aa. php.

After selecting the file, I submitted it.

The output result is

Why !! I am sleepy for an afternoon. The uploaded images are very small, and there is no INI file on the mac. Thank you very much.

Reply content:

The file address is aa. php.

After selecting the file, I submitted it.

The output result is

Why !! I am sleepy for an afternoon. The uploaded images are very small, and there is no INI file on the mac. Thank you very much.

It looks right. Check if the PHP-FPM process has the permission to read and write files.

Modify display_error = On in php. ini.

If you have permission issues or the file is too large, an error message is displayed.

No matter what php. ini is available, you can use phpinfo () to output it.

If you installed it in brew.

For example, brew info php70 shows the php. ini path.

This command also works.

Php-I | grep "Loaded Configuration File"

There is a space between name = and "tt"

Even if you do not select a file, there is a reasonable output.

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.