CGI Error on upload more than 16M

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
scarabee
Forum Newbie
Posts: 5
Joined: Sun Jun 18, 2006 3:45 am

CGI Error on upload more than 16M

Post by scarabee »

Hi!

I'm uploading photos to my image gallery. But when I try to upload more than 16 Mb of data, I get this error. Uploading less works fine. I have buildt this image gallery using PHP 5, running on a windows server 2003 with IIS. Have changed a lot of settings in the php.ini file, but to no help. Can anybody give me a lead to what is wrong?


Thanks, Scarabee!
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

What is the error?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

My guess in that it is a limitation of PHP, the webserver or the OS.
(#10850)
scarabee
Forum Newbie
Posts: 5
Joined: Sun Jun 18, 2006 3:45 am

Post by scarabee »

The error is:

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP headers.
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

16mb is the default max file size in php 5.x
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

change upload_max_filesize and max_post_size in php.ini
scarabee
Forum Newbie
Posts: 5
Joined: Sun Jun 18, 2006 3:45 am

Done all the above

Post by scarabee »

I have changed upload_max_filesize and max_post_size in php.ini, and some other settings. ....and get the same error still.


Scarabee!
Post Reply