I'm trying to recursively create directories, but I get this PHP warning:
<?php mkdir('data/1/0', 0755, true);
PHP Warning: mkdir(): Not a directory in /home/myScript.php on line 1
from the manual book,we can see:
bool mkdir ( string $pathname [, int $mode = 0777 [, bool $recursive = false [, resource $context ]]] )
When we try to mkdir 'data/1/0',actually we can mkdir '0' under the directory 'data/1'.But when 'data/1' happen to be a file , not directory,php will issue a warning
PHP Warning: mkdir(): Not a directory
So,when you come with this warning ,you can check wether the prefix of the pathname is a file ,where a directory expected.