Before you want to use this system to create your profile, I believe you have configured the relevant Apache server, MySQL database, and PHP.
Then start your MySQL database, create a database named study, and create a table named Wenzhang.
Create the following fields under phpMyAdmin:
ID smallint (5) No 0 auto_increment
Timu varchar (+) Yes
Zuozhe varchar Yes
Laiyuan varchar (+) Yes
Textt text Yes
Riqi datetime Yes
Single page submission. File name: input.php
Untitled Document
Single page generation, file name: shengcheng.php
$db = mysql_connect ("localhost", "root");
mysql_select_db ("study", $db);
Write the article to the database
$t = Date ("y-m-d h:i:s");
$sql = "INSERT into Wenzhang (Timu,zuozhe,laiyuan,textt,riqi)
VALUES ($timu, $zuozhe, $laiyuan, $textt, $t) ";
$result = mysql_query ($sql);
Add the counter to a
$FDD =fopen ("Count.txt", "R");
$CDD =fread ($FDD, 5);
$CDD + +;
Fclose ($FDD);
$FDD =fopen ("Count.txt", "w");
Fwrite ($FDD, $CDD);
Fclose ($FDD);
Article generation
$muoban 1 = fopen ("Muoban1.txt", "R");
$muoban 2 = fopen ("Muoban2.txt", "R");
$muoban 3 = fopen ("Muoban3.txt", "R");
$qita = "
Author: $zuozhe Source: $laiyuan Date: $t
|
";
$muoban 4=fread ($muoban 1,1000);
$muoban 5=fread ($muoban 2,1000);
$muoban 6=fread ($muoban 3,1000);
Fclose ($muoban 1);
Fclose ($muoban 2);
Fclose ($muoban 3);
$main = "$muoban 4 $timu $qita $muoban 5 $textt $muoban 6";
Article generation
$TTT = ". html";
$n = $CDD. $ttt;
$f = fopen ($n, "a");
Fwrite ($f, $main);
Fclose ($f);
Print "
Submit Success
";
?>
continue to submit administrative files
(to Be continued) /p>
http://www.bkjia.com/phpjc/532499.html www.bkjia.com true Span id= "Isbasedonurl" itemprop= "Isbasedonurl" >http://www.bkjia.com/phpjc/532499.html techarticle when you want to create your profile with this system, I believe you have configured the relevant Apache server, MySQL database, and PHP. Then start your MySQL database, ...