Get the remote file contents using PHP
<p>I am trying to get the contents of the file local.xml , i have tried open the file using direct link in the browser but says NOT FOUND but it actually exists..so i have used CODE for getting acces to it used file_get_contents and CURL but both are not able to get the contents... 
I am wonder if one could get it done....</p>

<pre><code>&lt;?php
$feedURL = 'http://trendsetter.icyberking.com/app/etc/local.xml';

$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$feedURL);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); 
$file = curl_exec($curl_handle);
curl_close($curl_handle);
echo $file;
?&gt;
</code></pre>
