Page 1 of 1

uploading in PHP

Posted: Fri Jun 27, 2003 10:52 am
by karteek
Hi,

I wrote a code to upload files in PHP.I exectuted the code on two machines.I got the result only in one machine.So I copied the php.ini file on that machine into the machine in which the script failed.But still I am not able to upload files greater than 500KB on that machine.What else should I change so as to upload large files.

Posted: Fri Jun 27, 2003 11:45 am
by jason
Don't know. Could be a dozen things that are preventing you from uploading. Care to share some code? Maybe a Url to a phpinfo() output would be helpful as well.

Posted: Fri Jun 27, 2003 6:14 pm
by Galahad
If you are using apache, there is a setting (it's in "etc/httpd/conf.d/php.ini" on my machine) called "LimitRequestBody <somenumber>" that you may need to change. The default on my machine (Redhat 8.0) is 524288 or about 500k.

Posted: Sat Jun 28, 2003 7:31 am
by m3mn0n
php.ini wrote: ; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
That's my current setting. M = MB