title: relative path for open method of a XMLHttpRequest object
body: <p>In the JavaScript file containing the Ajax request what is the URL relative to? I've got the www directory containing the directories alpha and bravo. The JavaScript file in alpha and the HTML file that includes it and the PHP that processes the request in bravo.</p>
  
  <p>In the JavaScript file I have <code>xmlhttp.open("GET", "CheckServer.php?name="+name,true);</code> but I don't think <code>CheckServer.php</code> is right. I've tried <code>../bravo/CheckServer.php</code> but it doesn't work. </p>
  
  <p>I'm not using JQuery and I am using WAMP.</p>
  
  <p>Plus, is there any trouble shooting tools I can use to see if the PHP page for processing the request is being accessed in the first place?</p>
  
  <p>EDIT: I opened the console and it says the function I'm calling in the JavaScript file is not defined. This only happens when I moved the .js file to a different directory. (I modified the <code>&lt;script&gt;</code> tag appropiratly: <code>&lt;script type="text/javascript" src="../alpha/Check.js"&gt;</code>. </p>
  
  <p>EDIT 2: I think there is a problem with WAMP because I copy the exact same files/folders to the desktop and everything works.</p>