Re: Does this seem odd? File Upload Permissions
| From: | Jason Wong | Date: | Wed, 27 Mar 2002 08:09:00 +0000 |
| Subject: | Re: Does this seem odd? File Upload Permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90336@lists.php.net to get a copy of this message | ||
On Wednesday 27 March 2002 15:33, David McInnis wrote:
> OK. But I am not changing the permissions. How am I setting the x bit?
> I am not doing anything in my code except executing a copy() or
> move_uploaded_file(). Is my server not configured correctly? If so, how
> do I change the default permissions?
>
> By the way, move_uploaded_file() sets completely different permissions
> [-rw-------]than copy() [rwxr-xr-x]. I still say . . . "strange".
Have a look at the umask() function.
If that doesn't solve your problem you can always explicitly set the
permissions after moving/copying using chmod().
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
If you lived today as if it were your last, you'd buy up a box of rockets
and fire them all off, wouldn't you?
-- Garrison Keillor
*/