File Upload Problems

From: Date: Thu, 14 Feb 2002 21:25:20 +0000
Subject: File Upload Problems
Groups: php.windows 
Request: Send a blank email to php-windows+get-12094@lists.php.net to get a copy of this message
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

« previous php.windows (#12094) next »