php Проверить, что путь к папке существует -- если нет, то создать её и все подпапки рекурсивно
Primary tabs
Можно так:
if (!file_exists('path/to/directory')) { mkdir('path/to/directory', 0777, true); }
- Log in to post comments
- 2205 reads
Можно так:
if (!file_exists('path/to/directory')) { mkdir('path/to/directory', 0777, true); }