title: Get the link of an specific xml file from the server (php script) and load it in javascript
body: <p>In the web site I am creating a user can upload and download files and I create an xml log with operation informations. 
  In the website there is a page where a table of the log xml is created reading the xml.</p>
  
  <p>It worked fine when it was all in my hard disk but now that I started hosting it on a server I don't know how to make it work.</p>
  
  <p>In local computer the xml request was</p>
  
  <pre><code>xmlhttp.open("GET","file.xml",false);
  </code></pre>
  
  <p>Now in the real web site I need to make an ajax call to a php script to geth the path of my personal xml file.</p>
  
  <p>First question: what kind of address i need to output from the php script?</p>
  
  <pre><code>http://mywebsite/folder1/folder2/log_username.xml
  </code></pre>
  
  <p>Is something like this?</p>
  
  <p>With the ajax call I save the address in a variable and the xml request became:</p>
  
  <pre><code>xmlhttp.open("GET",xml_address_variable,false);
  </code></pre>
  
  <p>The problem is that  the XML isn't loaded. Where is the problem?</p>
  
  <p>EDITED: now that i wrote in the javascript code the path of a specific user for experiment it worked, but if I put the variable (link_xml) where the AJAX call should save the path it doesn't work so this is the critical part of my code:</p>
  
  <pre><code>var link_xml = askXMLaddress();
  
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  xmlhttp.open("GET",link_xml,false);
  xmlhttp.send();
  xmlDoc=xmlhttp.responseXML;
  </code></pre>