Personal beauty? I have a problem that is as follows. I use the following code to create a directory.
//verifica se existe diretorio para criar
$dir = 'imagens/'.$id_produto.'/';
if(!file_exists($dir)){
mkdir($dir, 0777);
}else{
echo "Erro ao criar diretório";
}
But even going there in the folder and leaving it clean, running this code it points out that the directory exists. I have already displayed echo file_exists($dir);
separately and it returns me 1 as if the directory existed. The strange thing is that it came to normal and now I have this problem. any ideas?