Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can !
Moderator: General Moderators
kcwong13
Forum Newbie
Posts: 3 Joined: Wed Sep 13, 2006 10:26 pm
Post
by kcwong13 » Wed Sep 13, 2006 10:45 pm
Hi there,
I would like to change upload_max_filesize to 8MB, i set the these values php.ini
upload_max_filesize= 8M
post_max_size= 10M
memory_limit= 10M
max_input_time=90
max_execution_time=120
but i still cannot upload file which more than 2MB, may i know is it i miss somethg?
Thanks and best regard
Kc
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Wed Sep 13, 2006 11:31 pm
kcwong13
Forum Newbie
Posts: 3 Joined: Wed Sep 13, 2006 10:26 pm
Post
by kcwong13 » Wed Sep 13, 2006 11:45 pm
Hi there,
Thanks for your reply, i already set post_max_size greater than upload_max_filesize, is it have any other problem?
Thanks and best regard
Kc
Luke
The Ninja Space Mod
Posts: 6424 Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA
Post
by Luke » Wed Sep 13, 2006 11:52 pm
I'm sorry I need more sleep... totally missed that in your post
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Thu Sep 14, 2006 6:49 pm
Have you checked your phpinfo() to make sure your changes to php.ini took effect?
arkady
Forum Newbie
Posts: 23 Joined: Sun Sep 17, 2006 9:34 pm
Post
by arkady » Mon Sep 18, 2006 2:41 am
Don't forget to reinitialise apache (assuming you're the system administrator: /etc/init.d/httpd restart)
Also, you may be sending the $MAX_FILE_SIZE via a POST header (if you're using a tutorial off the net, many specify this in the form code for the submitting webpage).
kcwong13
Forum Newbie
Posts: 3 Joined: Wed Sep 13, 2006 10:26 pm
Post
by kcwong13 » Mon Sep 18, 2006 3:57 am
Hi there,
yes, i ceck the phpinfo.php, the changed i make already save, and i initial the server, but still cannot upload the file more than 2MB, any other solution?
thanks and best regard
Kc
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Mon Sep 18, 2006 11:18 am
As ~arkady said, what's the value of your "MAX_FILE_SIZE" element? If that's still at 2000000, that would explain it.
What exactly is the value of the error you're getting? Matching it up here:
http://ca3.php.net/manual/en/features.f ... errors.php , might help you narrow down the problem.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.