For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > January 2006 > Newbie Help - mkdir problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Newbie Help - mkdir problem
Chris

2006-01-31, 6:56 pm

I'm trying to use mkdir() to make a directory with a mode of 0777 but it
always gets created with 0755. How do I change it to 0777.

Thanks,

Chris


Ian Peattie

2006-01-31, 6:56 pm

In article <UiLDf.1852$tK2.1404@fe05.lga>, "Chris" <dippyv(nospam)@yahoo.com> wrote:
>I'm trying to use mkdir() to make a directory with a mode of 0777 but it
>always gets created with 0755. How do I change it to 0777.


What is your umask set to?
Chris

2006-01-31, 6:56 pm

I figured it out. If I chmod() the foldername after I create it, it will
become 0777. The PHP manual was confusing me because it says it defaults to
0777.

Thanks,

Chris


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com