PHP generate static page simple small instance source code program

Source: Internet
Author: User
Tags php database
PHP generate static page simple small instance source code program php database PHP generate static small instance

(A very simple PHP code for generating static page small instance source code. if you are learning PHP to generate static files and are very complicated to form CMS, you can download this small program, the source code contains the principle of generating static pages. However, the source code is very simple. if you have a few files, you can understand them at a glance. you can bypass it.

Source code structure: a total of 8 files.

The index. php homepage reads the news classification content added to the background. The news classification data is directly stored in the database.

The user name and password must be manually modified in the connection file of the inc/database.

Moban/generate static template files, which can be modified as needed.

Newslist/directory for generating static html files.

Images/foreground image.

Remember to create the data. SQL database file.

The editor called by the eWebEditor/background.

Admin/background program -- "The background is not logged on. There are four pages in total. The News and News deletion functions are added, and static pages are generated directly when added, delete the generated static html file.

Add news in localhost/admin/add. php

Localhost/admin/del. php delete news

Localhost/adminaddnews. php generates the static html execution file

Localhost/delnews. php deletes the corresponding static html file when deleting the article

Download Instructions: the small program structure is very simple. to facilitate the use of new PHP programmers, there are few major files.

Author: smiling release address: http://www.60ie.net/article/5/255.html welcome friends who like PHP Research to discuss. Click download below. PHP generates a simple small instance of the static page PHPHTML.zip (586 K)


Reply to discussion (solution)

? You? Next ,? Just connect? Minute

Learn from the landlord
Mark ........

The landlord is a good guy.

Very good

This blog is good and has comprehensive knowledge. Will it be available in the future ?? You can go there.

Team up and score points.

I downloaded it first and found it for a long time without any code that can be used directly. I hope it can be easily understood by new users ..... Thank you!

Thank you )!!

Very good

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.