I keep getting many pdf file in my directory root/files/pdfs
. I want a PHP script to automatically delete only the .pdf
files from the pdfs
folder that are older than 24 hours (86400
seconds).
What permissions will the .php
file require?
Where to put the file?
Should I have to run the PHP by visiting the link of the PHP file?
NOTE: I have a FTP access to a subdomain
You can try this method, it checks the file creation time. Or use "filemtime" for file modified time.