title: Why my .php cant find a bitmap using a .js path?
body: <p>I have the next web site folder structure (in short):</p>
  <ul>
  <li>Root_folder
  <ul>
  <li>PHP_folder
  <ul>
  <li>index.php</li>
  </ul>
  </li>
  <li>Javascript_folder
  <ul>
  <li>app.js</li>
  </ul>
  </li>
  <li>Assets_folder
  <ul>
  <li>my_texture.jpg</li>
  </ul>
  </li>
  </ul>
  </li>
  </ul>
  <p>...&quot;index.php&quot; calls &quot;app.js&quot; with the line:</p>
  <pre><code>&lt;?php include '../Javascript_folder/app.js'; ?&gt;
  </code></pre>
  <p>...and &quot;app.js&quot; calls &quot;my_texture.jpg&quot; with the line:</p>
  <pre><code>var texture = new THREE.TextureLoader().load(&quot;../Assets_folder/my_texture.jpg&quot;);
  </code></pre>
  <p>... but &quot;my_texture.jpg&quot; is not found.</p>
  <p>If I put &quot;my_texture.jpg&quot; in the same folder of &quot;index.php&quot; and change the javascript path to:</p>
  <pre><code>var texture = new THREE.TextureLoader().load(&quot;./my_texture.jpg&quot;);
  </code></pre>
  <p>... the bitmap is found, but obviously I prefer to keep the assets in their own folder.</p>
  <p>How could I find the bitmap respecting my current folder structure?</p>