I would like to know how I can apply with a single code in php chmod 777 in a folder and subfolders at one time in case I have a folder called images and inside it has 4 subfolders I need to perform chmod 777 on them with a single code instead of using the code below.
And is there any way you could apply chmod 777 in the images folder and all its subfolders with a single code in the case?
<?php
$chmod = chmod("imagens", 0777);
$chmod = chmod("imagens/medias", 0777);
$chmod = chmod("imagens/capas", 0777);
$chmod = chmod("imagens/icones", 0777);
$chmod = chmod("imagens/screen_shots", 0777);
?>