title: XML loading very slow with PHP
body: <p>I have the following code:</p>
  
  <pre><code>&lt;?php
  include "convert/xmlToArray.php";
  
  $query_string = $_GET['query_string'];
  
  if ($query_string == "") {
      $query_string = "travel";
  }
  
  $completeurl = "http://my_site";
  
  $xml = simplexml_load_file($completeurl);
  
  $arrayData = xmlToArray($xml);
  
  echo json_encode($arrayData);
  ?&gt;
  </code></pre>
  
  <p>There is another page that fetches theses results with JavaScript and displays it to the user.</p>
  
  <p>The page takes more than 10 seconds to fetch the results and display them.</p>
  
  <p>Does anyone have any idea on how to make it load faster? Is there a client based solution?</p>
  
  <p>Thanks</p>