Hi Marco,

You need to specify the mode as 0777 (octal number) with a leading
zero:
new Folder('/tmp/a/b', true, 0777);
But be careful with that. This makes the directory world read and
writable!

See http://php.net/manual/en/function.chmod.php for more 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to