What is static websites?

Source: Internet
Author: User
What is static websites. Is such a website static? If you use Smarty to develop a static webpage ., Simply put, it is an HTML file. No data is directly transferred from the database ., Use PHP to generate static pages. It is more convenient to generate with SMARTY ., Is such a website static? If you use Smarty to develop a static webpage ., Let's look at this website. what is static website.
Is such a website static? If you use Smarty to develop a static webpage.

------ Solution --------------------
Simply put, it is an HTML file. No data is directly transferred from the database.
------ Solution --------------------
Use PHP to generate static pages. It is more convenient to generate with SMARTY.
------ Solution --------------------
Discussion
Is such a website static? If you use Smarty to develop a static webpage.

------ Solution --------------------
Let's take a look at this website, which will teach you how to do it: www.study8899.com
------ Solution --------------------
Simply put, you can directly use ob. After running the following code, a static file of 2012.html is automatically generated under the/htmldirectory (the html directory must have the write permission ). In practical applications, you also need to determine whether an html file exists. If an html file exists, you can directly access the html file. if it does not exist, the html file is automatically generated and then accessed.

PHP code
  

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.