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.
See http://php.net/manual/en/function.chmod.php for mor information on
modes.

-David

On 12 Mrz., 12:13, Marco <marco.perg...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to