Thank you David. I tried to modify with a leading 0 but the result is the same. Your are right when you say permission 777 is not a good idea. I modified with 0755 and the result is d-wxrw--wt (363)
What is the 't' at the end? Is the problem something related to the server configuration? Marco On Mar 12, 10:01 am, David Persson <[email protected]> wrote: > Hi Marco, > > You need to specify the permissions as 0777 (octal) with a leading > zero: > > new Folder('/tmp/a', true, 0777); > > But be careful with that as it makes the created dir world read and > writable. > Seehttp://php.net/manual/en/function.chmod.phpfor mor information on > modes. > > -David > > On 12 Mrz., 12:13, Marco <[email protected]> wrote: > > > Hello, > > > I have a problem with directories permissions created by CakePhp in a > > hosting server that I never had. > > The folder is created by this line of code: > > > $folder = &new Folder($path = $folderName, $create = true, $mode = > > '777'); > > > The folder is created with these permissions on server dr----x--t > > > The guys of server support told me that when CakePhp creates folders > > they have Apache permission and I have to change the configuration of > > CakePhp. > > > I don't know how to solve this problem. > > > Marco --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
