title: links not working on web server
body: <p>i have developed a php application which is running perfect on local server. when i deployed the application on web server the links are not working</p>
  
  <p>1)  my site is "abc.myapplication.com"  (abc is subdomain)</p>
  
  <p>i defined following variable in config file</p>
  
  <pre><code> define('ROOT_PATH', $_SERVER['DOCUMENT_ROOT']);
  </code></pre>
  
  <p>ROOT_PATH variable shows /home/punjabfo/public_html/abc (which is perfect)</p>
  
  <p>for link i used following code</p>
  
  <pre><code>&lt;a href="&lt;?php echo ROOT_PATH . "addrecord.php"; ?&gt;"&gt;Add Record&lt;/a&gt;
  </code></pre>
  
  <p>link should go to "abc.myapplication.com/addrecord.php" but link go to </p>
  
  <pre><code>"abc.myapplication.com/home/punjabfo/public_html/abcaddrecord.php"
  </code></pre>
  
  <p>i tried a lot but could not fin the issue. please help. thanks</p>