title: Phpstorm doesn't know how to run Wordpress
body: <p>I've tried all I could found here and googling. Include paths, external libraries, interpreter settings...</p>
  
  <p>Whenever I try to run my theme's <code>index.php</code> file:</p>
  
  <pre><code>C:\XAMPP\php\php.exe "C:\path\to\project\wp-content\themes\MYTHEME\index.php"
  
  Fatal error: Call to undefined function get_header() in C:\path\to\project\wp-content\themes\MYTHEME\index.php on line 1
  
  Process finished with exit code 255
  </code></pre>
  
  <p>So yes on line 1 I'm just calling my header.</p>
  
  <p>Turns out it's trying to run <code>index.php</code> like a standalone file, <strong>but ignoring the whole Wordpress instalation</strong> (that I have included from different angles). Certainly it nows where <code>get_header()</code> is because I can control click it and it'll bring me to the file it's declared in, no problems.</p>
  
  <p>It correctly detects XAMP's PHP interpreter too.</p>
  
  <p>It also works well if I just visit the site typing my localhost URL in the browser. It just won't work through Phpstorm.</p>