title: Warning on loading XML data
body: <p>I am using following code to get current time (hours) in Los Angeles </p>
  
  <pre><code>$response_xml_data = file_get_contents('http://www.earthtools.org/timezone-1.1/34.05223/-118.24368');
  $data = simplexml_load_string($response_xml_data);
  $dt = new DateTime($data-&gt;localtime);
  $time = $dt-&gt;format('H:i:s');
  list($hour, $min, $sec) = explode(':', $time);
  echo $hour;
  </code></pre>
  
  <p>This code is working fine offline, but i am getting following warning message when i put this file online:</p>
  
  <pre><code>Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in [PHP file name and line number]
  </code></pre>
  
  <p><code>Warning: file_get_contents(http://www.earthtools.org/timezone-1.1/34.05223/-118.24368)</code><br>
     <code>[function.file-get-contents]: failed to open stream: no suitable wrapper could be 
      found in [PHP file name and line number]</code></p>
  
  <p>It looks like i am using a wrong method to read XML data, please suggest?</p>