Home > Article > Backend Development > NPC copy data processing program_Supplement_PHP tutorial
Note:
1. The processing of NPC copy materials is a set of programs I use myself. Because I saw discussions about full-text retrieval on the forum, I published it to the public regardless of my rookie level in programming.
2. Full-text CD-ROM copies of Renmin University should be available in all university libraries.
######config.php3
$hostname = "localhost";
$dbusername = "";
$dbname='';
$ dbpassword = "";
function indexfile($index_file,$index_title,$index_describe=""){
global $added;
if($index_file==""){
$index_file="indextemp.html";
}
elseif(file_exists($index_file)){
$added=1;
copy($index_file,$index_file.".bak");
}
$fp_i=fopen($index_file,'w+');
fputs($fp_i, "
"; echo" echo $msg." "; echo " Please write to xueroom@263.net and contact the administrator."; | echo" 返回 "; | echo ''; exit -1; } function xueroom_message($msg) { echo '
} ?> #################### 数据库结构: 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 '0000-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 '0000-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) ); Statement: The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn Previous article:BBS (php & mysql) full version (6)_PHP tutorialNext article:BBS (php & mysql) full version (6)_PHP tutorial Related articlesSee more |
---|