delete all older files backup.tar from current folder and keep the last 3 backup.tar in php using glob
I created a couple of script that backup my website, the script so are divided in two files:
I created a couple of script that backup my website, the script so are divided in two files:
I’m trying to display an array of files in order of date (last modified).
I’m writing a photo gallery script in PHP and have a single directory where the user will store their pictures. I’m attempting to set up page caching and have the cache refresh only if the contents of the directory has changed. I thought I could do this by caching the last modified time of the directory using the filemtime() function and compare it to the current modified time of the directory. However, as I’ve come to realize, the directory modified time does not change as files are added or removed from that directory (at least on Windows, not sure about Linux machines yet).