List Info

Thread: CHMOD




CHMOD
country flaguser name
United States
2007-05-05 11:18:59

is there a way that when a file or directory is created to set the permissions through perl. i
have the code below but it's not working. thanks in advance for your help.
mkdir("$imagedir", 0777) || &error("Sorry! The username $username is already taken. 3 " ,
__FILE__, __LINE__,);

__._,_.___
.

__,_._,___
Re: CHMOD
country flaguser name
United States
2007-05-07 23:55:59

--- In perl_advanced_programmming%40yahoogroups.com">perl_advanced_programmmingyahoogroups.com, "Fred Garvin"
<ahqmed...> wrote:
&gt;
> is there a way that when a file or directory is created to set the
permissions through perl. i
> have the code below but it's not working. thanks in advance for your
help.
> mkdir(&quot;$imagedir", 0777) || &error("Sorry! The username $username is
already taken. 3 " ,
> __FILE__, __LINE__,);
>
Please try
chmod(0111, "myfile"); for file permissions
and
mkdir("newdirectory", 0777); for directory permissions

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )