PHP upload file (pics, in zipped format, rar file)

Hi,
I have some data to upload through php and the data could be in zipped or RAR format and file size could be more than 400MB. So i need some good code to work on this with minimum data loose and error.
Could it be possible to upload such a large amount of data through php, if yes then i request to you please suggest some good stuff to use.

Thanks

PHP can upload as much file size as it can I believe. Your huge problem you will encounter on large file size is your php.ini or .htaccess. I have created my own “YouTube” sort of file uploading where you can only upload videos, but the file size are too large so I get the 413 error.

I’m not sure if it’ll help you, but you need to change the max_upload_size and max_upload_limit, but I’ve tried this and it still doesn’t work. Tried it on .htaccess and it gives me error 500 apache misconfiguration.

It’s not working for me so I stopped building that application for a while now, but I’m certain that someone has gotten it to work. Your issue will probably be php.ini or .htaccess if you have access to either both of them.

Hi,
thanks “therockers”.
Can you pls share some code, it will help me.
Thanks

Please try to attempt it yourself. Forums are made to help people, not just “Do it all for me” kind of idea. I would like to share my ideas, but you have to attempt it first or else I’m doing your work for you and you won’t know what to do when you encounter another problem. Also, you won’t learn a thing if you make people do your work for you.

I don’t want to sound rude or mean, but that’s how a lot of coding forums will do.

I have a shared host that doesn’t allow me access to the ini file.

But I have used ini_set to change things like max limits, memory, timeout etc with some success.
http://www.php.net/manual/en/ini.list.php

I found this article:

Also take a look at the comments. It could help you!

I found it looking for “how to upload large file with PHP” on Google. There’s a lot
Also, some other articles on stackoverflow:
http://stackoverflow.com/questions/16102809/how-to-upload-large-files-above-500mb-in-php
http://stackoverflow.com/questions/1700207/upload-large-files-using-php-apache