Re: file permission
| From: | Marko Vukovic' | Date: | Wed, 30 Aug 2000 10:39:14 +0000 |
| Subject: | Re: file permission | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14373@lists.php.net to get a copy of this message | ||
Worawisut Pinyoyang wrote:
>
> to all,
>
> i have a big problem about file permission.
> When i upload file into /tmp directory.The Owner is "nobody" and the
> group is "nobody" too and i 'd like to change the uploaded file
> permission but i cannot! (because i'm a general user not super user)
> how can i change my uploaded file permission?
>
> my program is the forum that allow member to upload their images file
> when posting.If someone upload filename "a.jpg" and the other upload
> filename "a.jpg" too (same name not same image).It 'll replace exist
> a.jpg. That's my all problem. Any idea to solve them?
>
I don't think it's a permissions issue.
Why not just use this function: file_exists(string filename); to check whether the file is there
first.
--
Marko