Page 1 of 1

[bugged] PHP Upload Broken

Posted: Mon Feb 14, 2005 4:37 pm
by blackice912
Hey guys,

First off, I'd like to say you've got a great forum here.

Now then, to the problem.

On the server I'm currently getting my hosting from (private hosting project), I cannot get PHP to upload. Heck, I can't even get the simplest script to upload anything.

Proof Of Problem: http://nfiles.nwserver.net/updev/
(If you upload and it works, you'll get a file type, size, and tmp location)

The index.php is a simple upload form
Upload.php just contains "print_r($_FILES);"

A few things I've noticed:
Small files will upload (usually under 100k)
Large files error out (error 3)

I cannot figure out why this is happening, and I need to fix it so I can open my script for guests to use.

Ideas?

Thanks,

-Brad

Posted: Mon Feb 14, 2005 4:39 pm
by feyd
you need to set your upload size... read the file upload handling page in the php docs.

Posted: Mon Feb 14, 2005 4:48 pm
by blackice912
I've done that before, and just added it into the proof-of-broken code link above. I set the max to five megs, and it still gives me an error 3 on a file that was only ~500k.

Posted: Mon Feb 14, 2005 5:19 pm
by feyd
you have a phpinfo() there?

Posted: Mon Feb 14, 2005 5:27 pm
by blackice912

Posted: Mon Feb 14, 2005 5:34 pm
by feyd
requires log in.

Posted: Mon Feb 14, 2005 5:38 pm
by blackice912