title: Run php program from /var/www folder
body: <p>I have lampp server and UBUNTU OS, when I use my command line I write,</p>
  
  <pre><code>sudo /opt/lampp/lampp start
  </code></pre>
  
  <p>for starting my xampp server on linux.
  Now I can able to run my php code written in /opt/lampp/htdocs directly by calling,</p>
  
  <pre><code>localhost/myphpcode.php
  </code></pre>
  
  <p>And it works well.</p>
  
  <p>But I want to run my php code from folder /var/www which is in root.
  How can I run my php folder using this path?</p>