简体   繁体   中英

Unable to change upload_max_filesize in php.ini

Running PhP v. 5.6.12 on localhost after extracting xampp-win32-v. 5.6.12.0-VC.7z through xampp control panel v. 3.2.1 with administrator rights on Windows 7 Ultimate (64-bit).

After editing php.ini in the php folder in xampp to change upload_max_filesize, phpinfo() shows no change of default value ie 2M. Checked phpinfo() through xampp and by creating a test file also. Same value of 2M is displayed.

Searched all concerned forums, but same old solutions didn't solve the problem. Any help will be appreciated. Thanks.

Providing solution to help others having similar problems. Editing the original php.ini file in Notepad++ v. 6.8.3 didn't have any effect. Therefore, copied contents of the original php.ini file and pasted it to create a new php.ini file in Notepad++ itself. Changed the required values and saved. Bingo!

Like yourself, I tried all the available solutions with no success so I figured why not to delete the file and create a new one from scratch. And voila it worked.

I use Visual Code Studio but it should work with other file editors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM