Processing Procedures for copying data to the National People's Congress _ supplement. Note: 1. the process of copying data by the National People's Congress is a set of programs used by myself. because I have seen discussions on Full-Text Retrieval on the forum, I will ignore the Cainiao-level gap in programming. I will also describe it:
1. the process of copying data by the National People's Congress is a set of programs used by myself. because I saw a discussion on Full-Text Retrieval on the forum, I did not care about the Cainiao-level gap in programming and published it to the public.
2. the NPC may copy full-text CDs in university libraries.
###### Config. php3
$ Hostname = "localhost ";
$ Dbusername = "";
$ Dbname = '';
$ Dbpassword = "";
Function indexfile ($ index_file, $ index_title, $ index_describe = ""){
Global $ added;
If ($ index_file = ""){
$ Index_file = "\ index \ temp.html ";
}
Elseif (file_exists ($ index_file )){
$ Added = 1;
Copy ($ index_file, $ index_file. ". bak ");
}
$ Fp_ I = fopen ($ index_file, 'W + ');
Fputs ($ fp_ I ," $ Index_titleRn ");
Fputs ($ fp_ I, "$ index_titlern ");
// $ Dte_created = date ('Y-m-d H: I: s ');
Fputs ($ fp_ I, "$ index_describe ");
// Query date: $ dte_createdrn ");
// Fputs ($ fp_ I ,"
Database error
Severe error
Rn ");Return $ fp_ I;}Function mysql_error_exit ($ msg ){$ Errno = mysql_errno ();$ Error = mysql_error ();Echo'';Echo $ msg;Echo"Error: ($ errno) $ error";Echo'';Exit ();}Function xueroom_error_exit ($ msg, $ page ){Echo"";Echo"
";Echo"
";
Echo" ";
Echo $ msg ."
";
Echo" |
Please send a xueroom@263.net and contact the administrator. ";
Echo"
|
Return ";
Echo'';
Exit-1;
}
Function xueroom_message ($ msg ){
Echo'
';Echo'
';
Echo "$ msg ";
Echo' |
';Echo'
';
}
?>
#################### Database structure:
Create table artical (
Artical_id int (6) not null auto_increment,
Resource_id varchar (10) not null,
Origin_periodical varchar (60) binary not null,
Date_pub datetime DEFAULT '2017-00-00 00:00:00 'not null,
Artical_author varchar (50) binary not null,
Artical_title varchar (100) binary not null,
Artical_data longblob not null,
Artical_type varchar (6 ),
Artical _ size varchar (10 ),
Date_reprinted datetime DEFAULT '2017-00-00 00:00:00 'not null,
Read_count int (10) DEFAULT '0' not null,
Catalog tinyint (4) unsigned DEFAULT '0' not null,
Primary key (artical_id ),
KEY artical_title (artical_title ),
KEY artical_author (artical_author ),
KEY origin_periodical (origin_periodical ),
KEY catalog (catalog ),
KEY resource_id (resource_id)
);
Tip 1: The process of copying data is a set of programs used by the National People's Congress. because I saw a discussion on Full-Text Retrieval on the forum, I ignored the Cainiao's poor programming level...
|