AnrDaemon
Продвинутый новичок
PHP:
// We need to find the permissions of the parent folder that exists and inherit that.
$target_parent = dirname( $target );
while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
$target_parent = dirname( $target_parent );
}
Как думаете, какой будет результат выполнения этого кода? ($target - путь для создания каталога)
Настройки системы предполагаются разумные.