title: Load images from computer PHP / HTML
body: <p>at this moment i am in China. I created a simple website for uploading some pictures to share with friends. Adding comments etcetera. I upload all the pictures but they load very slow in China so my idea was:</p>
  
  <p>When i am logged in (can find in session) i will simply load the pictures from my local machine and not from the website because it is very slow or it doesnt even load the pictures.</p>
  
  <p>I tried this:</p>
  
  <pre><code>        if ($_SESSION['id'] == 1) {  //check if i am logged in
              $china = "file:///F:/";
          } else { $china = ''; }
  </code></pre>
  
  <p>after that:</p>
  
  <pre><code>        echo "&lt;div id='title" . $image['id'] . "'&gt;&lt;h2&gt;" . $image['title'] . "&lt;/h2&gt;&lt;/div&gt;
                          &lt;img src='$china" . $image['url'] . "'/&gt;";
  </code></pre>
  
  <p>But when i open my browser it seems it can find the picture because it has a width but no height so the picture isnt shown. When i follow the link to the picture with the devoloper tools it will show the picture so the links are right.</p>
  
  <p>I think this is not working because of some security reasons or something. I hope someone can help me.</p>