qrz fix
这个提交包含在:
父节点
c1ed8418a8
当前提交
054eb0598e
共有 1 个文件被更改,包括 19 次插入 和 1 次删除
|
|
@ -5,7 +5,25 @@ class Welcome extends CI_Controller {
|
|||
|
||||
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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用