这个提交包含在:
Peter Goodhall 2012-11-14 00:56:54 +00:00
父节点 c1ed8418a8
当前提交 054eb0598e

查看文件

@ -5,7 +5,25 @@ class Welcome extends CI_Controller {
public function index() public function index()
{ {
$this->load->view('welcome_message'); //$this->load->view('welcome_message');
// URL to the XML Source
$xml_feed_url = 'http://xmldata.qrz.com/xml/current/?username='.$username.';password='.$password.';agent=cloudlog';
// CURL Functions
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $xml_feed_url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$xml = curl_exec($ch);
curl_close($ch);
// Create XML object
$xml = simplexml_load_string($xml);
print_r($xml);
} }
} }