Increase the Upload size
Moderator: General Moderators
-
lawrence_chtan
- Forum Newbie
- Posts: 22
- Joined: Mon Jan 02, 2006 8:20 pm
- Location: SINGAPORE
Increase the Upload size
Greeting to all the guru
I had gone thru all the google search. wonder i miss up any point
My problem:
by default PHP only accept 2MB of data upload size to the Webserver
and notice from the Google search. We just need to change the php.ini. the max_upload_size=2MB but the strange part is. after i restarted the computer. In order to let my OS recognised the php.ini
I still cannot exceed the 2MB. the filesize i gonna upload is about 5.6MB
I m testing it on my XP machine and as well my VM of Win2003, with IIS and MySQL
Lawrence
I had gone thru all the google search. wonder i miss up any point
My problem:
by default PHP only accept 2MB of data upload size to the Webserver
and notice from the Google search. We just need to change the php.ini. the max_upload_size=2MB but the strange part is. after i restarted the computer. In order to let my OS recognised the php.ini
I still cannot exceed the 2MB. the filesize i gonna upload is about 5.6MB
I m testing it on my XP machine and as well my VM of Win2003, with IIS and MySQL
Lawrence
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
edit the php.ini and make sure the upload_max_filesize and post_max_size has the value you wanted.
After changing the php.ini, save it and restart the apache web server to see the effect.
Cheers,
Dibyendra
Code: Select all
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M
; Maximum size of POST data that PHP will accept.
post_max_size = 16MAfter changing the php.ini, save it and restart the apache web server to see the effect.
Cheers,
Dibyendra
Increase Maximum Upload Size
create a .htaccess file and write max_upload_size=2MB.
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
via ini_set
Dear all,
Can we set the memory limit via ini_set() at run time accroding to the upload size ?
Dibyendra
Can we set the memory limit via ini_set() at run time accroding to the upload size ?
Dibyendra
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Unless you're loading the uploaded file into memory, there's little point in fiddling with the memory limit.
Yes, it can be altered, at run time, in the script. If you want to know what directives can be altered where, read the ini core directives page.
Yes, it can be altered, at run time, in the script. If you want to know what directives can be altered where, read the ini core directives page.