Carved in mystic runes upon the very living rock, the last words of
David Prem of comp.lang.php make plain:
[color=blue]
> Alan Little schrieb:[color=green]
>> You could create the directory with open permissions. But your
>> provider should install a script wrapper. This is much more secure
>> than files and directories with open permissions.[/color]
>
> What do you mean with open permissions?
> Something like mkdir($dir, 0777) or so?
> This doesn't work, mkdir creates directories only with permission 0755
> on this server. And chmod($dir, 0777) doesn't change the ownership.
> chown() is not allowed at all (because the directory doesn't belong to
> the script, it belongs to the PHP-interpreter).[/color]
No, chmod doesn't change the ownership, but allows anyone to access it,
so that it doesn't matter who owns it. Very insecure.
--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/