Problem with PHP Upload Form

Problem with PHP Upload Form

Posted by: achtung
Posted on: 2007-08-26 23:18:00

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!

Re: Problem with PHP Upload Form

Posted by: Lensman
Posted on: 2007-08-26 23:59:00

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.

Re: Problem with PHP Upload Form

Posted by: achtung
Posted on: 2007-08-27 00:25:00

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?

Re: Problem with PHP Upload Form

Posted by: Lensman
Posted on: 2007-08-27 00:56:00

In reply to:

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


(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.

Re: Problem with PHP Upload Form

Posted by: rlparker
Posted on: 2007-08-27 01:29:00

In reply to:

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.


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!smile

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

--rlparker

Re: Problem with PHP Upload Form

Posted by: achtung
Posted on: 2007-08-27 09:46:00

Disregard this, read something wrong.
Edited by achtung on 08/27/07 10:37 AM (server time).

Tags: google adsensephp uploaddhhtaccess