Okay, I'm unable to view the data from using this bit of code:
PHP Code:
$url = 'http://www.wowarmory.com/guild-info.xml?r=YOUR+SERVER&n=YOUR+GUILD&p=1';
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
$rosterxml = curl_exec($ch);
I'm guessing I'm making some fundamental mistake here, so let me explain exactly what I'm doing.
I'm inserting the above code within php tags, using Dreamweaver, so that it appears as follows:
PHP Code:
<?php
$url = 'http://www.wowarmory.com/guild-info.xml?r=YOUR+SERVER&n=YOUR+GUILD&p=1';
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1");
$rosterxml = curl_exec($ch);
?>
After which point I save the document and view it in a browser. Now, I don't see any information displayed (which I suppose is the way it works) but even after viewing the source, I still see nothing. No data of any sort, save my raw HTML tags.
I'm still very new at this, so I'm almost 100% certain that I'm simply doing something wrong, and missing what is probably an obvious step for the rest of you.