puoi usare fileperms:

Codice PHP:
<?php
echo "chmod: ".substr(sprintf('%o'fileperms("directory_da_leggere")), -3)."";
?>