Why mkdir fails with recursive option set true?
I run the following code: mkdir('mnt/1',0777,true); mkdir('mnt/a',0777); Directory "a" is created, while directory "1" is not, page prints warning. Warning: mkdir(): File exists in /home/bitrix/www/php_test.php on line 3 I have full permissions on directory mnt for user apache is running: drwxr-xr-x 1 bitrix bitrix 4096 Nov 28 10:10 mnt PHP version - PHP 5.3.3. Apache version 2.2.15. Any ideas, why mkdir fails with recursive option set to true? Update! Well I cleared the folder, made the following php-script and ran it again: <?php error_reporting(E_ALL); mkdir('mnt/1',0777,true); mkdir('mnt/2