|
Posted by harvey on 05/24/07 10:55
In article <pan.2007.05.23.19.31.54.373777@invalid.spam>,
invalid@invalid.spam says...
> http://www.php.net/manual/en/function.mkdir.php
>
Thanks for that heads up -
Surely someone has a simple solution for this that will work anywhere?
Using FTP (as suggested) just seems absurd to me.
After reading the above link I think I can sumarise with:
-----------------[ CUT ]------------
If you're on a shared *nix server, a directory created through mkdir()
will not be assigned to you, but to the user that your host's server or
php process is running under, usually 'nobody', 'apache' or 'httpd'.
In practice, this means that you can create directories, even add files
to them, but you can't delete the directory or its contents nor change
permissions.
-----------------[ END CUT ]------------
It is also incomplete - it appears you cannot create sub-dirs in them
without taking extra steps ... using umask() and sticky bits depending
on configuration. And even then it doesn't always work nor report
the failure.
All this can't be right can it?
[Back to original message]
|