title: php log complete request
body: <p>Is it possible to log the request with php?
  I also want to log the images, js, css file requests. </p>
  
  <pre><code>&lt;img src="foo.png"&gt;
  &lt;link rel="stylesheet" href="foo.css"&gt;
  </code></pre>
  
  <p>I currently use this code but it only gives me the current request uri and not the other files etc.
  I also rewrited all request to my index.php wich i have this line of code in.</p>
  
  <pre><code>file_put_contents('foo.txt', $_SERVER['REQUEST_URI'] . PHP_EOL, FILE_APPEND | LOCK_EX);
  </code></pre>