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!
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.
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.
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.