• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

File Hashes CLI Script 1.0.0

No permission to download
Generate the file hashes array to copy into your method.

Liam W

Well-known member
#1
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...