打開cpanel控界介面,
到[郵件管理工具]->[修改MX紀錄]
從網域裡選擇要套用的網域後
將 email routing 指定為 remote mail exchange 後按下change 即可
$config['appId'] = 'ap_id';
$config['secret'] = 'ap_secrect';
$config['cookie'] = true;
$this->load->library('facebook', $config);
$this->load->library('session');
$result1 = $this->facebook->api(
array(
"method" => "fql.query",
"query" => "select fan_count from page where page_id =粉絲頁id;"
));
echo $result1[0]['fan_count'];<-讚數
原文
header("Content-Type: application/octet-stream");
header("Expires: 0");
header("Content-Transfer-Encoding: binary");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-disposition: attachment; filename=\"$id.doc\"");
$this->load->helper('download');
$file = $this->sub["ulapurl"].$id.".doc";<-檔案位置
$data = file_get_contents($file);
$data=iconv("UTF-8","Big5",$data);<-重點
echo $data;