Why not create a folder?

var_dump(dirname(__FILE__).'/'.$title);//string(74) "F:\OpenServer\domains\comicsparser.ru/BitchBoy" 
mkdir(dirname(__FILE__).'/'.$title, 0777,true); //error Warning: mkdir() [function.mkdir]: Invalid argument in 
mkdir("F:\OpenServer\domains\comicsparser.ru/BitchBoy", 0777,true); //Creates

Why can't I create a directory?
July 2nd 19 at 17:12
2 answers
July 2nd 19 at 17:14
Try to specify the full path. I am confused by the different slashes in the path to the folder
I have now the full path, the thing is that if I manually specify the folder name that all the rules, but if it is taken from the variable that says what is not a valid argument. Slash I corrected the folder - same result(((((( - federico.Moen55 commented on July 2nd 19 at 17:17
What's in a variable? Sure there is a correct name? - Nayeli.Kassulke commented on July 2nd 19 at 17:20
checked now separate variable, there really are left data, it is strange why I did not see them when you var_dump(dirname(__FILE__).'/'.$title); - federico.Moen55 commented on July 2nd 19 at 17:23
July 2nd 19 at 17:16
use DIRECTORY_SEPARATOR instead of slashes

Find more questions by tags PHP