Re: file uploads problem
| From: | @ Edwin | Date: | Tue, 24 Sep 2002 06:35:24 +0000 |
| Subject: | Re: file uploads problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117377@lists.php.net to get a copy of this message | ||
Just a comment...
On Tuesday, September 24, 2002 1:39 PM
Jaski wrote:
<snip>
> I tried to copy this file using
> move_uploaded_file($userfile, "/place/to/put/uploaded/file");
>
> and here a strange thing happened. The file was successfully
> copied BUT it had permissions like -rw------ which I interpret as
> only accessible to root. I tried copy() function instead and it
> failed.
>
...having that "permission" doesn't necessarily mean that it's only
accessible to root--unless of course you're running Apache as root, which I
doubt you'd do.
Anyway, if the file was successfully copied why not just try to open it
there?
- E