php7 Solution to the problem that changing php.ini does not work: 1. Check the path of the configuration file; 2. Modify the parameters of "php.ini" under windows; 3. Set the parameters of "post_max_size" It is N times of "upload_max_filesize"; 4. Restart apache.
The operating environment of this tutorial: Windows 7 system, PHP 7 version, Dell G3 computer.
php7 Modifying php.ini does not take effect?
Solution:
I am working on the php file today A problem occurs when uploading: it always prompts
Warning: POST Content-Length of 10880209 bytes exceeds the limit of 8388608 bytes in Unknown on line 0. Follow the online solution to find the settings of post_max_size and upload_max_filesize in php.ini I modified the parameters, but found that there was no response after restarting apache.
So I output phpinfo on the page and found that my effective configuration file was not in the php installation directory, but under C://windows, and then I checked under windows. Modify the parameters in php.ini
It should be noted that the post_max_size parameter is best set to N times the upload_max_filesize, and finally restart apache Found that the upload was successful.
Recommended study: "PHP Video Tutorial"
The above is the detailed content of What should I do if changing php.ini in php7 does not work?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function