Hello, I would like to know how to create multiple folders at once, for example, with this code:
<?php
$empresa = "Google";
$tipo = "Abertura";
$nome = "Contrato Social";
mkdir('$empresa/$tipo/$nome');
?>
Now with this data I would like to create in this case 3 folders that would be the Google - > Aperture - > Social Contract, in case google is the mother folder and opening is inside it, and social contract is another folder that is inside opening, which is inside google, it was kind of confusing but it would look something like this:
Business \ Google \ Opening \ Social Contract
EDIT:
I've done something like this, but it's still an error, it does not create the folders inside, it creates out type Joaquim Sauro.FGTS
<?php
$nome_user = "Joaquim Sauro";
$tipo = "FGTS";
$categoria = "Abertura";
$pdf = "pdf.pdf";
$pathName = "html/empresas/" . $nome_user;
mkdir($pathName,0777,true);
echo "OK1";
$pathName2 = "html/empresas/.$nome_user."/"" . $tipo;
mkdir($pathName2,0777,true);
echo "OK1.1";
$pathName3 = "html/empresas/.$nome_user."/".$tipo."/"" . $categoria;
mkdir($pathName3,0777,true);
echo "OK1.2";
move_uploaded_file($pdf,$pathName3);
?>