title: Get an absolute file path
body: <p>How to get a absolute file path php</p>
  
  <p>I have a folder abc and xyz. </p>
  
  <p>I am including the file a.php of abc in xyz folder using Ajax request by giving relative path which is like:</p>
  
  <pre><code>../a.php
  </code></pre>
  
  <p>The file a.php contains some actions which are done using Ajax request. </p>
  
  <p>In xyz folder i want to perform same actions which are perform in abc folder, but when i try to perform those actions it is searching for files in xyz folder instead of abc, so the actions which i want to perform in xyz are not working.</p>
  
  <p>Please help me how to do this. </p>
  
  <p>Updated code:</p>
  
  <pre><code>$(function(){
      $.ajax({
          type:"POST",
          url: "../xyz/a.php",
          data: {
              "Id": '&lt;?php echo $_GET['Id'];?&gt;'
          },
          success: function(data){
              $("#divId").html(data);
          }
      }); 
  });
  </code></pre>