A big HELLO to php-windows, Having some problems with file uploads, hope someone can help.
Using php4.0.3pl1 I have a program that collects a file name and tries to upload it. Syntax is same as that in the manual. This works fine locally (on localhost) and the file is 'transferred' across my hard drive. When i upload the propram/page everything works the same except the following command returns false (it's really all on one line): move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], "uploads/".$HTTP_POST_FILES['userfile']['name']) $HTTP_POST_FILES is in the global list at the start of the function and I know it's correct because it works locally. The only thing I'm not sure about is the path that i'm moving to. "uploads" is a sub-directory off the directory where my php file lives. I've also tried /downloads/uploads, /web/downloads/uploads but with no luck. So, anybody able to help? Please :) -- Cheers, Neil -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php