If you want to use the images more than 2Mb, then please, do the following:
You can do this by yourself if you're working on the local machine or if you have an access
file on your server (you may also use
file with the same instructions in case your
hosting allows to change this).
So, please, open
file and find the lines:
max_execution_time = 30;
max_input_time = 60;
change them to
max_execution_time = 60;
max_input_time = 90;
and also change the line
post_max_size = 2M;
post_max_size = 4M;
in case you would like to upload the files up to 4 Mb.
max_execution_time - integer
This sets the maximum time in seconds a script is allowed to run before it is terminated by
the parser. This helps prevent poorly written scripts from tying up the server. The default setting
is 30. The maximum execution time is not affected by system calls, stream operations etc. Please
see the set_time_limit() function for more details.
You can not change this setting with ini_set() when running in safe mode. The only workaround
is to turn off safe mode or by changing the time limit in the php.ini.
Your web server can have other timeouts. E.g. Apache has Timeout directive, IIS has CGI
timeout function, both default to 300 seconds. See the web server documentation for meaning of it.
max_input_time - integer
This sets the maximum time in seconds a script is allowed to parse input data, like POST, GET
and file uploads.
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. You may also use shorthand notation
as described in this FAQ.
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. <form action="edit.php?processed=1">, and then checking if
$_GET['processed'] is set.
Please, refer to
for more info.