I use PHP to develop the website.

Source: Internet
Author: User
PHP Framework

The method of static PHP page, do not use frames and templates. Also take into account the page and so on.

Thank you!!!


Reply to discussion (solution)

Also consider updating the issue!!!!!! (important).

Find a static CMS to see it, such as dedecms, without templates, without frames ... Enough for you to write.

Apache Rewrite

You can only use the function to generate a static page of the page, and then through the rewrite implementation of the URL conversion to achieve static

PHP urlrewrite

It's all about pseudo-static.

Apache Rewrite

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

PHP urlrewrite

Yes, is there a good way???

Yes, you can download templates for pages that can produce HTML directly.
You can actually experiment with a few simple functions, such as

There is also a way to create a new template, such as: index_temp.html
Then use $fopen to open the HTML file, and then write the content with Fwrite!
Pseudo code probably

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

program generates static files

The landlord's understanding of static is insufficient. Not all pages can be statically formatted. This is a matter of specific situation.

To the landlord a train of thought, the premise is: The landlord's website is rarely updated, you can use PHP to generate HTML format. Similar to the 9 floor.

You are actually a problem, you first static page, paging read, such as passing an ID to a page, and then determine 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.