title: Finding out the filename that called my function in PHP
body: <p>How do I find out the filename of the script that called my function?</p>
  
  <p>For example,</p>
  
  <pre><code>function sthing() {
  echo __FILE__; // echoes myself
  echo __CALLER_FILE__; // echoes the file that called me
  }
  </code></pre>