I have some folders in my project and I need to go through all of them by saving the name of the mother folder, the daughter, and their files ...
The parent folder is "Manual", inside it I have other folders "Register" and "Reports", in these sub-folders I have some images (screen print), so I need to return an array with the data:
array[0][0] = "Manual";
array[0][1] = "Cadastro";
array[0][2] = "Imagem001.png";
array[1][0] = "Manual";
array[1][1] = "Cadastro";
array[1][2] = "Imagem002.png";
array[2][0] = "Manual";
array[2][1] = "Relatorio";
array[2][2] = "Imagem001.png";
array[3][0] = "Manual";
array[3][1] = "Relatorio";
array[3][2] = "Imagem001.png";
Does anyone know how to do this? I have tried using php dir but I could not get the parent folder ...