Where is the php. ini in the TP framework?

Source: Internet
Author: User
Write an additional upload program under the TP framework, and the prompt is: string (78) & quot; the uploaded file exceeds the value of the upload_max_filesize option in php. ini! & Quot; how to find the php. ini, write an additional upload program under the TP framework, and the prompt is:

String (78) "the uploaded file exceeds the limit of the upload_max_filesize option in php. ini! "

How can I find php. ini?

Reply content:

Write an additional upload program under the TP framework. The following message is displayed:

String (78) "the uploaded file exceeds the limit of the upload_max_filesize option in php. ini! "

How can I find php. ini?

Php. ini is the php configuration on the server, not in TP
You can see through echo phpinfo ();

You can use the php function ini_set () to modify the default php settings.

Php. ini is the configuration file of php installed on your own. It is usually in the php Directory you have installed and has nothing to do with ThinkPHP.
For errors encountered by the subject, you can directly modify the php. ini file, or use ini_set to temporarily modify the settings as described above.

Find the php. ini modification item in the php configuration directory.

That's a php file.

Linux & mac
Usually in/etc/php. ini

Win
Usually in your php installation directory

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.