Problem with PHP Upload Form

software development

#1

Sorry if this is in the wrong section.

I’m using an upload form someone made for me and I want to set the upload limit to 20 MB. Problem is, every way he’s told me to do it doesn’t seem to have worked. I’ve also tried messing with .htaccess in an attempt to up the limit. So I’m posting here to see if there’s some limit set by DH, or if there’s something obvious I’m missing.

Here’s a pastebin of the code in index.php, which I believe is all that’s needed:
http://pastebin.ca/672024

There’s some google adsense code thrown in there too.

Thanks!


#2

Try reading this thread.

The bottom line is that if you really need to increase the PHP upload limit, you have to install your own version of PHP:
http://wiki.dreamhost.com/Installing_PHP4
http://wiki.dreamhost.com/Installing_PHP5

Note that with either of those two methods, you’ll still run into a memory limit at around 90MB. To go higher you’ll have to use something like rlparker’s Uber-Uploader suggestion.

Free unique IP and $67 off with promo code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for more promo code discounts


#3

Sweet, a quick response.

Could I use Uber-Uploader to get by without having to go through the trouble of installing my own version of PHP?


#4

(Despite the fact that I haven’t yet installed it, I’ll answer)

Yes, I think the idea is that it uses a perl script to efficiently handle the upload, avoiding excess memory use and the PHP limit.

Free unique IP and $67 off with promo code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for more promo code discounts


#5

Well, just to give credit where credit is due, uber-uploader was the original suggestion of another DH Forum user. :wink: It was the only post on these forums by Amnuts, but it was a really useful one!

All I did was install it and test it to see that it worked well, point a few others at it, and help a couple of folks get it running! :slight_smile:

It’s a nice piece of software and nicely addresses a problem/need that repeatedly presents itself. Highly recommended!

–rlparker


#6

Disregard this, read something wrong.