Get the data from the shell script, then import it into the database, and implement the page experience with PHP code
Write a shell script to get the appropriate information
Via load data infile ' filename ' into table tablename; Import the resulting information into the database
Specific parameters see the specific use of note load data
Use PHP code to reflect the information you need on the page
Note: MySQL import information
Load data infile ' filename ' into table tablename [option]
Option parameter
Fields terminated by ' string '//field delimiter, default = ' \ t '
fields [optionally] enclosed by ' char '//field reference, if add optionally only on type Char,varchar,text and so on, default does not use
Fileds escaped by ' char '//escape character, default \
Lines starting by ' string '//before each line by adding the character '
Lines terminated by ' string '//Row not added by default \ n
Ignore number lines//number represents numbers, ignoring the first few lines of imported data
Set column name =exp//Convert a column before loading
Operational Development Tips