PHP Scripts
This is a collection of some of the more helpful PHP scripts I've written or found online.
- fileScripts.php
- findfile() - given a path and a regular expression, returns an array of all the files in that location matching the regex
- getLatestModFilename() - given an array of filenames, returns the name of the latest modified file
- getLatestFilename() - given a path and a regular expression, returns the name of the latest modified file matching the regex
- printVersion() - given a filename of form myFile.version.ext, echo
the version substring