title: How to automatically delete file older than 24 hours of a .pdf format in a specific folder with PHP
body: <p>I keep getting many pdf file in my directory <code>root/files/pdfs</code>. I want a PHP script to automatically delete only the <code>.pdf</code> files from the <code>pdfs</code> folder that are older than 24 hours (<code>86400</code> seconds).</p>
  
  <p>What permissions will the <code>.php</code> file require?
  Where to put the file?
  Should I have to run the PHP by visiting the link of the PHP file?</p>
  
  <p>NOTE: I have a FTP access to a subdomain</p>