Hey guys just a quick one really,
How do I go about chmod'ing a directory on my server.
On creation of the folder by ftp_connect() it creates as 0755 and needs to be 0777
Please help
thanks
andy
How do I CHMOD a directory
Moderator: General Moderators
-
andylyon87
- Forum Contributor
- Posts: 168
- Joined: Sat Jan 31, 2004 5:31 am
- Location: Dundee
-
andylyon87
- Forum Contributor
- Posts: 168
- Joined: Sat Jan 31, 2004 5:31 am
- Location: Dundee
short answer yes, providing $dir is the correct path to the directory or file.
you may have to look at http://www.php.net/manual/en/function.umask.php if it isn't working right and it's not a path issue.
you may have to look at http://www.php.net/manual/en/function.umask.php if it isn't working right and it's not a path issue.
-
andylyon87
- Forum Contributor
- Posts: 168
- Joined: Sat Jan 31, 2004 5:31 am
- Location: Dundee
if
because this wont work for me it keeps telling me I dont have the permissions to do that.
is there any way of doing it whilst I have the ft connecton open
Code: Select all
$dir=/users/$usernameis there any way of doing it whilst I have the ft connecton open