經過shell腳本獲取到相應的數據,而後導入到數據庫中,用PHP代碼實現頁面體驗的步驟mysql
編寫shell腳本,獲取相應信息
sql
經過load data infile 'filename' into table tablename;把所得信息導入的數據庫中shell
具體參數詳見筆記 load data 的具體使用方法
數據庫
利用PHP代碼把所須要的信息體如今頁面中ide
注:mysql導入信息
ci
load data infile 'filename' into table tablename [option]字符串
option 參數string
fields terminated by 'string' //字段分割符,默認指表符 '\t'it
fields [optionally] enclosed by 'char' //字段引用符,若是加optionally只在char,varchar,text等類型上加,默認不使用io
fileds escaped by 'char' //轉義字符,默認\
lines starting by 'string' //每行前加字符 ''
lines terminated by 'string' //行未加字符串 默認\n
ignore number lines //number 表明數字,忽略導入數據的前幾行
set 列名=exp //將某個列轉換後再加載