Uploading Large Files in PHP

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
gemini1247
Forum Newbie
Posts: 3
Joined: Mon Aug 04, 2008 3:46 am

Uploading Large Files in PHP

Post by gemini1247 »

Can anyone help me by providing the ways to upload a larger file say 60 MB ? I tried uploading it.. Maximum size i could upload is only 10 MB.

Regards & Thanks in Advance,
Gemini :P
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Uploading Large Files in PHP

Post by jaoudestudios »

Change the ini file to allow larger files. You will also need to allow more script time too.
gemini1247
Forum Newbie
Posts: 3
Joined: Mon Aug 04, 2008 3:46 am

Re: Uploading Large Files in PHP

Post by gemini1247 »

Thanks for your immediate reply. I have tried changing upload_max_filesize, post_max_size, setting in .ini file but it dint not reflect any changes.

Rgds,
Gemini :P
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Uploading Large Files in PHP

Post by jaoudestudios »

Did you restart apache afterwards? and not graceful, I would do a full apache restart.
i.e.

Code: Select all

> service httpd restart
gemini1247
Forum Newbie
Posts: 3
Joined: Mon Aug 04, 2008 3:46 am

Re: Uploading Large Files in PHP

Post by gemini1247 »

i use xampp.. i tried restarting Xampp.. it started.. but MYSQL is not running now.. With this issue still i am able to upload files that are less than 10 MB

Rgds,
Gemini
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Uploading Large Files in PHP

Post by jaoudestudios »

Do you get any errors or timeouts? As you might have to increase script execution time and script input time.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Uploading Large Files in PHP

Post by RobertGonzalez »

Could you please try to post PHP related questions to their appropriate forum. General Discussion is not for things like this. If this is a code question post it to PHP - Code. If it is a configuration question post it to Installation and Configuration. Thanks.

I'll be moving this PHP code momentarily.
Post Reply