prefix("phone_book") . "`"; $result = $xoopsDB->query($sql) or web_error($sql); while ($all = $xoopsDB->fetchArray($result)) { $content.=implode(',',$all)."\n"; //$content.=iconv('UTF-8', 'Big5', implode(',',$all))."\n"; } $date=date("YmdHis"); //匯出 file_put_contents(XOOPS_ROOT_PATH . "/uploads/{$date}_phone_book.csv", $content); //下載 header("Content-type: text/csv"); header("Content-Disposition: attachment; filename={$date}_phone_book.csv"); echo $content; exit; ```
進階搜尋
526人線上 (184人在瀏覽線上書籍)
會員: 0
訪客: 526