What is the difference between PHP and Web services compared to JSP implementations?

Source: Internet
Author: User
See a passage in the book:

Typically, the JSP engine checks to see if the servlet for the JSP file already exists, and whether the JSP modification date is older than the servlet. If the modified date of the JSP is older than the modified date of its generated servlet, the JSP container assumes that the JSP modification date has not changed, and that the resulting servlet's modification date still matches the contents of the JSP. This process is more efficient and therefore faster than other scripting languages, such as PHP.

What is the process of PHP, please?

Reply content:

See a passage in the book:

Typically, the JSP engine checks to see if the servlet for the JSP file already exists, and whether the JSP modification date is older than the servlet. If the modified date of the JSP is older than the modified date of its generated servlet, the JSP container assumes that the JSP modification date has not changed, and that the resulting servlet's modification date still matches the contents of the JSP. This process is more efficient and therefore faster than other scripting languages, such as PHP.

What is the process of PHP, please?

PHP is not a process, because PHP is compiled every time the request, so it is no longer necessary to determine whether the code is updated.
In addition, the compilation of PHP and JSP also exist very different, PHP because each time will compile, in order to speed up the compilation speed, remove the code optimization process, its compile faster than the JSP comes faster, but also can not generalize, compare JSP is a compile long-term use, and PHP is not. If the comparison, can only say that each has its own unique characteristics.

  • 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.