[bugged] PHP Upload Broken

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
blackice912
Forum Newbie
Posts: 4
Joined: Mon Feb 14, 2005 4:30 pm
Location: Tacoma, WA
Contact:

[bugged] PHP Upload Broken

Post 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
Last edited by blackice912 on Mon Feb 14, 2005 4:41 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you need to set your upload size... read the file upload handling page in the php docs.
User avatar
blackice912
Forum Newbie
Posts: 4
Joined: Mon Feb 14, 2005 4:30 pm
Location: Tacoma, WA
Contact:

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you have a phpinfo() there?
User avatar
blackice912
Forum Newbie
Posts: 4
Joined: Mon Feb 14, 2005 4:30 pm
Location: Tacoma, WA
Contact:

Post by blackice912 »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

requires log in.
User avatar
blackice912
Forum Newbie
Posts: 4
Joined: Mon Feb 14, 2005 4:30 pm
Location: Tacoma, WA
Contact:

Post by blackice912 »

Post Reply