php static puzzles, how to PHP websites purely static

Updated on technology 2024-05-17
6 answers
  1. Anonymous users2024-02-10

    I also happened to be learning php, mysql under lamp recently, I understand your question.

    You're right, it's a php file, and as for what a static web page is, I'm going to tell you what I mean.

    The server executes the PHP file, and the PHP file creates an HTML file (usually an HTML template) as needed

    I can't figure it out, why is HTML returned?

    Because the client accesses HTML, and this HTML is generated by ourselves for others to access, that is, we have generated HTML before others access

    The above is my own understanding, if there is a deviation, please point it out, I hope it will be useful to you.

    Addendum: I've looked at some more information, let me give you an example. See if you agree with my idea:

    1.An excerpt from the Internet: "The news release on the home page is often updated through the background, and the update of the background is nothing more than the basic functions such as adding, deleting and deleting data.

    Here, you can use web design software to build the backend interface you want, and the implementation of its functionality is of course PHP. At this step, it's a good idea to think about the features you want in your press release system. Here, how to add and delete data with PHP will not be repeated, because the focus is on how to generate static technology on top of this.

    2.Let's talk about my understanding of the above sentence, first of all, we write one ourselves, and access it through the browser to generate the background. This means a manual update process, and the outside client accesses your files, which also reduces the burden on the server, and only needs to run it once.

    Hehe, you can continue to communicate, hi me.

  2. Anonymous users2024-02-09

    dynamic. What address do you want to access on the list page? id=123 When you are static, assuming that the generated is.

    This way, you can access it directly from the list page, without having to call PHP.

    As for the pseudo-static on the first floor, which is good for SEO, how many years ago was that? Feeds are easier to include than they are now.

  3. Anonymous users2024-02-08

    It's okay to do ajax directly, it's static, I think it's useful when it doesn't update for a long time or when there are a lot of visitors.

    If you use ajax, you can end it directly in HTML, and visitors can't see why.

  4. Anonymous users2024-02-07

    They are using pseudo-static, seemingly is. html files, the essence of access is still. jsp or. PHP dynamic page, but this pseudo-static is very conducive to SEO optimization, highly recommended!

    Feeds are more likely to be included? Who uses the big portal? sina、163…I've been doing network marketing for so long, and it's the first time I've heard of it, and it's to be confirmed....

  5. Anonymous users2024-02-06

    How is pure static implemented in **? The purely static production technology is that you need to summarize the ** page first, divide it into how many styles, and then make these pages into templates, and then read the source file and then generate an independent to. html end of the page file, so pure static ** needs more space, but in fact, the space required is not much larger, especially for small and medium-sized enterprises**, technically speaking, it is more difficult for large** to achieve pure static for the whole site, and the generation time is too long.

    However, small and medium-sized ** is still made into a purely static comparison, which has many advantages.

    And how is dynamic ** statically processed? Static is the process of turning a dynamic page into an HTML HTM static page. Dynamic pages are generally composed of ASP, PHP, JSP, and more

    .NET and other programming languages are written in a very easy way to manage. However, when visiting a web page, the program needs to process it first, so the access speed is relatively slow. Static pages are fast to access, but not easy to manage.

    Dynamic page static, then, can bring together the benefits of both pages.

  6. Anonymous users2024-02-05

    All HTML is cached for every visit...

Related questions
4 answers2024-05-17

The date(format,time) function has 2 parameters to format the output of the date, the first format is the format you want to be in the form y m d is the month, day and year, like h:i:s is the hour: >>>More

4 answers2024-05-17

1.Need a field trip to choose the learning style that suits you; >>>More

14 answers2024-05-17

This means to judge that the variable $entry is not equal to. And not equally. and the following is dir($dir.$entry) Yes. >>>More

12 answers2024-05-17

According to the original ** on the book, it is as follows: >>>More

15 answers2024-05-17

time() returns the UNIX timestamp of the current time, i.e., the number of seconds from the UNIX era (00:00:00 GMT January 1, 1970) to the current time. >>>More