Re: file upload and file permissions
From: somaBoy MX (none_at_nonesuch.net)
Date: 11/09/03
- Next message: Eric Ellsworth: "Re: Getting stiffed by a client"
- Previous message: Daniel Gwynne: "mysql dump file?"
- In reply to: Michael Wilcox: "Re: file upload and file permissions"
- Next in thread: Michael Wilcox: "Re: file upload and file permissions"
- Reply: Michael Wilcox: "Re: file upload and file permissions"
- Reply: Clubberboy: "Re: file upload and file permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 9 Nov 2003 23:56:16 +0100
"Michael Wilcox" <mjwilcoCANTHAVESPAM@yahoo.com> wrote...
: > When I manually chmod the folder permissions of the target directory
: > to 777 it does work. But I need my script to be able to create
: > directories, and php doesn't allow chmod-ing to 777.
:
: But PHP does allow this. Doesn't chmod("filename", 0777); work?
It doesn't on my server:
[...]
if (!ftpMkdir($path, $dir)) {
$result = 'fail';
} else {
chmod($path . $dir, 0777);
$result = 'ok';
}
When I run this, the gallery is created allright, but its permissions are
set to 755.
Might this have something to do with "umask"?
.soma
- Next message: Eric Ellsworth: "Re: Getting stiffed by a client"
- Previous message: Daniel Gwynne: "mysql dump file?"
- In reply to: Michael Wilcox: "Re: file upload and file permissions"
- Next in thread: Michael Wilcox: "Re: file upload and file permissions"
- Reply: Michael Wilcox: "Re: file upload and file permissions"
- Reply: Clubberboy: "Re: file upload and file permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|