PHP equivalent of Java Servlet

I am trying to understand that the correlator of servlets and applets in PHP, but I do not have much experience in JAVA.

I want to know what is equivalent to Java Servlets and JSP in PHP?

+4
source share
2 answers

In Java, a Servlet delivers a web page to a client. There are several web servers in PHP that provide the same functionality:

  • Apache2
  • Nginx
  • Lighttpd

PHP script is similar to JSP. It was designed to be used as a template.

However, PHP overtime was increasingly used not only for templates. Last year, new approaches appeared that used PHP to write the entire web server. For instance.

  • appserver.io
  • reactphp
+7

, Java Servlets JSP - PHP.

- https://en.wikipedia.org/wiki/Java_Servlet:

" - Java, . , , -, Java-, , -. [1] Java- -, PHP ASP.NET".

0

Source: https://habr.com/ru/post/1541857/


All Articles