title: Ajax post to a php file in a directory not working
body: <p>I'm using Ajax request for a project and i has lot of problem to make it working I sommetime receive some error 500 (Internal Server Error), but finally everything works until I wanted to move my scripts into a directory.</p>
  
  <p>Here is my Ajax works :</p>
  
  <pre><code>    var xhr = getXMLHttpRequest();
      xhr.onreadystatechange = function() {
      if (xhr.readyState == 4 &amp;&amp; (xhr.status == 200 || xhr.status == 0)) {
          callback_like(xhr.responseText, receive);
           location.reload();
        }
      };
      xhr.open("POST", "like.php", true);
      xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      var data = "like=" + receive;
      xhr.send(data);
  </code></pre>
  
  <p>And this one doesn't work :</p>
  
  <pre><code>    var xhr = getXMLHttpRequest();
      xhr.onreadystatechange = function() {
      if (xhr.readyState == 4 &amp;&amp; (xhr.status == 200 || xhr.status == 0)) {
          callback_like(xhr.responseText, receive);
           location.reload();
        }
      };
      xhr.open("POST", "script/like.php", true);
      xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
      var data = "like=" + receive;
      xhr.send(data);
  </code></pre>
  
  <p>Error message in the console : POST: 'url' 500 (Internal Server Error)</p>
  
  <p>I already tried to set all the right to the directory but nothing change..</p>
  
  <p>Thanks</p>