Posted by Labunski on 10/21/18 11:13
I think you could use php function mkdir() to do this.
mkdir("/path/to/my/upload_dir", 0777);
But unfortunately there is big "BUT" aka Safe_mode.
To use this mkdir() function, you have to disable the Safe_mode on the
server :(
"Note: When safe mode is enabled,
PHP checks whether the directory in which you are about to
operate has the same UID (owner) as the script that is being executed."
You can read more about mkdir() here:
http://lv2.php.net/manual/en/function.mkdir.php
and about chmod values here: http://lv2.php.net/manual/en/function.chmod.php
Hope this helps,
Lab.
[Back to original message]
|