Resource icon

File Hashes CLI Script 1.0.0

No permission to download

Liam W

in memoriam 1998-2020
Liam W submitted a new resource:

File Hashes CLI Script - Generate the file hashes array to copy into your method.

Super basic PHP CLI script that'll take a directory path, and spit out a copy/pasteable code snippet containing the array of the file hashes for the file_health_check callback.

Note: You have to set two variables near the top of the file for it to work correctly!

Usage: php GenSums.php <directory> <extensions> [<exclude_files>]

Extensions and exclude_files are a comma separated list. Directory is one value only.

Example Output:

Code:
Liams-Mac:LiamW liam$...

Read more about this resource...
 
Top Bottom