Hey,
I am trying to download zip files through a PHP code. The zip files are created through the same PHP code and are then stored in temp folder in the system. I am able to upload (from temp folder of the system) and download the zip files having size less than 35KB. But zip files having size greater than 35KB are not being uploaded properly and hence I am unable to unzip them after downloading.
That is an issue in your ini file. Is this on shared hosting?
Yes, you can change these temporarily in your upload page to alter the default settings using this type of code.
You have to alter the max size of the full post and also the max size of a file to be uploaded. Might work for you.
ini_set(‘post_max_size’, ‘64M’);
ini_set(‘upload_max_filesize’, ‘64M’);
Too large a max size might cause server issues if you have a large number of users uploading at the same time!