title: Warning: include_once(../settings/settings.php): failed to open stream - but the path is actually right?
body: <pre><code>Warning: include_once(../settings/settings.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/Project/classes/user.class.php on line 2
  
  Warning: include_once(): Failed opening '../settings/settings.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php7.2.1/lib/php') in /Applications/MAMP/htdocs/Snapshot/classes/user.class.php on line 2
  </code></pre>
  
  <p>But the file location is actually right? It even gives me auto path fill suggestions (visual code plugin) to that path! </p>
  
  <p>Why does this happen is this something to do with the / or the second warning line?</p>
  
  <p>&nbsp;</p>
  
  <p>So I'm trying to include the <strong>settings.php</strong> file from inside the <strong>User.class.php</strong> file with the following code.</p>
  
  <pre><code>include_once("../settings/settings.php");
  </code></pre>
  
  <p>../ -> goes back into the root folder</p>
  
  <p>settings/ -> enters settings folder</p>
  
  <p>settings.php -> should locate the needed .php file</p>
  
  <p><a href="https://i.stack.imgur.com/GEUZl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GEUZl.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/xkUzd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xkUzd.png" alt="enter image description here"></a></p>