title: How to set image path in apache(php)?
body: <p>I am trying to read a image file/pdf from my desktop in PHP (LAMP) using following command.</p>
  
  <pre><code> &lt;img src="/home/user/Desktop/scatterplot.pdf" /&gt;
  </code></pre>
  
  <p>but there is no output on web page. On right clicking image, i found it is looking for following path.</p>
  
  <p><a href="http://localhost/home/user/Desktop/scatterplot.pdf" rel="nofollow">http://localhost/home/user/Desktop/scatterplot.pdf</a></p>
  
  <p>How can i set path so that it can be searched within the directroy.</p>