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.