Personal webpage automation inherent system

Source: Internet
Author: User
When you look forward to using this system to create your personal homepage, I trust that you have configured the relevant Apache Server, MYSQL database, and php. Start your mysql database, create a database named study, and create a database named study.

When you look forward to using this system to create your personal homepage, I trust that you have configured the relevant Apache Server, MYSQL database, and php.
Start your mysql database, create a database named study, and create a table named wenzhang.
Create the following field in phpMyAdmin: id smallint (5) No 0 auto_increment
Timu varchar (200) Yes
Zuozhe varchar (18) Yes
Laiyuan varchar (40) Yes
Textt text Yes
Riqi datetime Yes
Submit a single page. File name: input. php


Untitled Document





A single page is born with a file name: shengcheng. php
// Write the article into 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 a counter
$ Fdd = fopen ("count.txt", "r ");
$ Cdd = fread ($ fdd, 5 );
$ Cdd;
Fclose ($ fdd );
$ Fdd = fopen ("count.txt", "w ");
Fwrite ($ fdd, $ cdd );
Fclose ($ fdd );
// The article is born
$ Muoban1 = fopen ("muoban1.txt", "r ");
$ Muoban2 = fopen ("muoban2.txt", "r ");
$ Muoban3 = fopen ("muoban3.txt", "r ");
$ Qita ="






Author: $ zuozhe ?? Origin: $ laiyuan
?? Time: $ t

";
$ Muoban4 = fread ($ muoban1, 1000 );
$ Muoban5 = fread ($ muoban2, 1000 );
$ Muoban6 = fread ($ muoban3, 1000 );
Fclose ($ muoban1 );
Fclose ($ muoban2 );
Fclose ($ muoban3 );
$ Main = "$ muoban4 $ timu $ qita $ muoban5 $ textt $ muoban6 ";
// The article is born
$ Ttt = ". html ";
$ N = $ cdd. $ ttt;
$ F = fopen ($ n, "");
Fwrite ($ f, $ main );
Fclose ($ f );
Print" Submitted successfully
";?>





Submit continuously ?? Governance document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.