In addition to that you should set the memory limit to a higher value.
memory_limit = 8M, in case your max file size is 7M
Just to be safe :)
On Thu, Apr 7, 2011 at 11:02 AM, Safique Ahmed Faruque <provat34@...>
You have to alter the following values, please check both.
upload_max_filesize = 7M
post_max_size = 7M
Safique Ahmed Faruque
To: phpxperts <firstname.lastname@example.org>
Sent: Mon, April 4, 2011 10:13:35 PM
Subject: [phpXperts] File upload
I want to upload a file size which is greater than 2 MB.The default file size of php is 2MB.
So,i have used the following coding,
But still i did not able to upload a file size which is greater than 2mb.When i change the settings of ini.php file max_upload_filesize to 7MB then its fine.But i do not want to change the settings in php.ini file.I want to change the setting to my application only.Is there any steps to change this settings ?
Md. Ashraf Jahan (Adil)
Freelance Software & Web Developer
M : +880 - 1670 - 556419
E : anjan011@..., info@...