Quote from the PHP manual
post_max_size integer
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than
upload_max_filesize. If memory limit is enabled by your configure
script, memory_limit also affects file uploading. Generally speaking,
memory_limit should be larger than post_max_size. When an integer is
used, the value is measured in bytes. Shorthand notation, as described
in this FAQ, may also be used. If the size of post data is greater
than post_max_size, the $_POST and $_FILES superglobals are empty.
This can be tracked in various ways, e.g. by passing the $_GET
variable to the script processing the data, i.e. , and then checking if
$_GET['processed'] is set.
So your post_max_filesize
need to be large enough to cope with the
(upload_max_filesize * files uploaded) + other variables
Also you need to check that memory_limit
is big enough to cope as well
The correct php.ini file
It is also worth noting that WAMPServer, like most Apache/PHP installations has 2 different php.ini files. Maybe you are editng the wrong one?
There is one in \wamp\bin\php\php{version}\php.ini
this is used by the PHP CLI ( Command Line Inteface ) and soes not affect PHP used under Apache.
The one you need to edit to affect Apache/PHP is
\wamp\bin\apache\apache{version}\bin\php.ini
but the easiest way to do that is to use the wampmanager menus.
Find the wampmanager icon in the system tray and left click then follow the menus
wampmanager -> PHP -> php.ini
This will open the correct php.ini
file, the one used by PHP when run with apache. Make the changes in this file.
localhost
homepage to aphpinfo()
script – RiggsFolly