title: Access logging in PHP
body: <p>I want to log access to any files in the <code>/files</code> folder, so I can process it with PHP to generate some statistics.</p>
  
  <p>I don't want to write a custom PHP handler called via <code>RewriteRule</code> because I don't want to have to deal with status codes, MIME-types and caching headers, and file locking issues.</p>
  
  <p>I don't have access to the server configuration, so I can't use <code>CustomLog</code> (I do have access to <code>.htacess</code>).</p>
  
  <p>I can't use <code>X-Sendfile</code> because it's not enabled.</p>
  
  <p>I don't have access to the <code>access.log</code>.</p>
  
  <hr>
  
  <p>Looking for an authorative answer.</p>