title: php works on wamp but not on 000webhost
body: <p>I have a php file that works perfectly with WAMP server, but when Im trying the 000webhost server I get errors.
  i.e. error on line 11 at column 1: Extra content at the end of the document.
  however under the error I get the right answer to the query, but not in the format I asked for.
  can anyone help?
  here is the code:</p>
  
  <pre><code>&lt;?php   
  mysql_connect("localhost","root",""); 
  mysql_select_db("ataxi");
  $src= $_GET['src'];
  $dest = $_GET['dest'];
  $day= $_GET['day'];
  $hour = $_GET['hour'];
  $luggage= $_GET['luggage']; 
  $query="SELECT price, estime FROM prices WHERE src='$src' and dest='$dest' and day='$day' and hour='$hour' and luggage=$luggage;"; 
  $result= mysql_query($query) or die("error:".$query);
  header('Content-type: application/xml; charset="utf-8"',true);
  echo "&lt;table&gt;\n"; 
  while ($row= mysql_fetch_array($result)) {
      echo "&lt;record&gt;\n";
      echo "&lt;price&gt;".$row['price']."&lt;/price&gt;\n";
      echo "&lt;estime&gt;".$row['estime']."&lt;/estime&gt;\n";
      echo "&lt;/record&gt;\n";
      }
  echo "&lt;/table&gt;\n";
  ?&gt;
  </code></pre>