Click to See Complete Forum and Search --> : W2K/IIS5.0/PHP4 File Upload Problem


Anon
02-07-2001, 10:41 AM
Ack. Okay, first confession - I'm new to PHP.

I'm having problems with file uploads with PHP4, Win2000 and IIS 5.0. When I do a file upload only the "name" and "type" variables are set - never the "size" and "tmp_name" vars.

I use the same code on my Linux box with Apache and all is right with the world - except I need to make the same code run under W2K and IIS 5.0.

Any suggestions? Please don't make me grovel!

{grovel, grovel}

(I feel so cheap!

tanks!

Anon
02-07-2001, 08:32 PM
some functions are unavailable in the Windows version of PHP or they don't make sense such as setting the umask, etc. How are you retrieving size and tmp_name vars? What upload function are you using?

let me know and I will try to help

Anon
02-08-2001, 04:02 AM
I have a form with <INPUT TYPE="FILE "NAME="picture"> as one of the fields. If I try to access $HTTP_POST_FILES["picture"]["tmp_name"] I get an undefined variable name.

I used a foreach to enumerate the key/value pairs in $HTTP_POST_FILES and only find two keys: 'name' and 'type' and they contain the correct values. 'size' and 'tmp_file' are not listed!

I'm guessing I have a configuration problem of some sort. Any ideas?

thanx!