0

I am trying to change the post_max_size from 3M to 100M, i also changed the upload_max_filesize but it's not working, cause when i print echo ini_get('post_max_size'); i always get 3M.

What else Do i have to change in php.ini in order to increment post_size?

This is for a html form which has an input type file, It works fine with files with sizes less than 3m

NOTE: I am using WAMP SERVER

RiggsFolly
  • 89,708
  • 20
  • 100
  • 143

4 Answers4

1

One of the biggest pitfalls for changing PHP.ini configurations is, that you use the wrong file. So create a php file with following content:

<?php
phpinfo();

There you will get a table with the most important infos about your installation. Have a look at the row of the php.ini file, which will look maybe like this:

Loaded Configuration File:  C:\xampp\php\php.ini

Make your changes to this file (from your phpinfo()). After every change, you have to restart your Apache.

bernhardh
  • 2,881
  • 9
  • 38
  • 70
0
string ini_set ( string $varname , string $newvalue )

More informations: http://php.net/manual/de/function.ini-set.php Or as Jozef Dúc recommended: try apache server restart.

Pete
  • 524
  • 4
  • 27
0

In your php.ini go to following line

post_max_size = 3M

Suppose change 3M to 10M if you want to change post size to 10mb.

Please don't forget to restart PHP service to apply changes.

DJ MHA
  • 598
  • 3
  • 18
0

After saving changes, you must restart your server.

Param Kumar
  • 123
  • 3
  • 18