- Code: Select all
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, "http://wow-europe.com/en/index.xml");
$data = curl_exec($ch);
curl_close($ch);
echo $data;
I know how to make it beeing saved to a file using $data as content, but the
problem as you see is that $data contains an 500 error. I tried to make curl
get the url as Firefox, but then it showed blank.
Any ideas?