Created
May 29, 2017 10:33
-
-
Save janus57/1b3ca82d18b8fa1457359addc15ebcdd to your computer and use it in GitHub Desktop.
count jpg/jpeg file un directory and subdirectory with php/system/find
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$comptage = system("find . -type f -exec file {} \; | grep -i 'jpeg\|jpg' | wc -l"); | |
file_put_contents('comptage.txt', $comptage); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment