title: How to get the physical path of a file?
body: <p>my client has migrated his server, the server address is the same, but the internal folders structure has changed, I was working with a PHP function that needed the server path to a file</p>
  
  <p>For example, the website address is www.example.com/file.php and my function is using the path like this: </p>
  
  <pre><code>require_once('/var/www/file.php');
  </code></pre>
  
  <p>Is there a way to find out?</p>