I used PHP to develop my website.

Source: Internet
Author: User
I used PHP to develop my website. Php Framework

For static PHP pages, do not use frameworks and templates. We also need to consider turning pages and so on.

Thank you !!!


Reply to discussion (solution)

We also need to consider updating the problem !!!!!! (Important ).

Find a static CMS, such as DEDECMS, without templates or frameworks... Enough for you to write.

Apache rewrite

You can only use the function to generate static pages, and then implement url conversion through rewrite to achieve static

Php urlrewrite

All of the above are pseudo-static

Apache rewrite

Hello, this seems to be pseudo-static, right ???

Php urlrewrite

Yes. Is there a good way ???

Yes. you can download templates for pages that can directly produce html.
In fact, you can also use a few simple functions, such

Another way is to create a template, such as index_temp.html.
Then open the html file with $ fopen and write the content with fwrite!
Pseudocode

$ Cent = fopen ("index_temp.html", "w"); $ fwrite ($ cent, "Test write"); $ fclose ($ cent );

Programs generate static files

Lack of understanding about static architecture. Not all pages can be static. This is a problem that depends on the specific situation.

The premise is that the website is rarely updated. you can use php to generate html format for the content. Similar to the 9th floor.

You are actually a problem. First, you should make the page static. when reading the page, for example, passing an id corresponding to a page, and then determining whether the page has been cached.

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.