Uploading large files

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
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Uploading large files

Post by Bill H »

I can find pieces of this subject, but not enough to really put it all together.

I've been using the file uploading process successfully, but now I need to override the maximum file size which is defined in the PHP configuration file on the server. It's a shared host and I can't change the ini file directly, so what do I need to do in addition to setting the MAX_FILE_SIZE?

I'm okay with the temp location and moving it, and with access rights. I just need to get it to quit telling me the file is too big.

Thanks (in advance).
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

.htaccess although if your host disabled that too, you're sunk.
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

What do I do in .htaccess?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I believe you use phpflag... but actually I'm not really sure.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

you can change it with ini_set in versions <= 4.2.3.
Post Reply