title: How to unlink() by its name without knowing the file extention?
body: <p><strong>In short</strong></p>
  
  <p>We have a a file called <code>clients.(unique parameter)</code>. And now we want to <code>unlink()</code> it, but as we don't know the file extension, how do we succeed?</p>
  
  <p><strong>Longer story</strong></p>
  
  <p>I have a cache system, where the DB query in <code>md5()</code> is the filename and the cache expiration date is the extension.</p>
  
  <p><strong>Example:</strong> <code>896794414217d16423c6904d13e3b16d.3600</code></p>
  
  <p>But sometimes the expiration dates change. So for the ultimate solution, the file extension should be ignored.</p>
  
  <p>The only way I could think of is to search the directory and match the filenames, then get the file extension.</p>