Why PHP script is not workig in a web browser?

Why PHP script is not workig in a web browser?

by 171-15-1340 Md Monir Hossain Shuvo -
Number of replies: 0

Here are the very simplified steps:

  1. The web server recieves a request.
  2. It checks the resource requested.
  3. It tries to find the resource as per its configuration. Part of this configuration is that all requests that match the pattern *.php should be sent to the PHP interpreter.
  4. The webserver passes the request to the PHP interpreter (which is a module configured for the webserver, or a separate binary, depending on how the web server is configured).
  5. The PHP interpreter reads the request, then executes the file by interpreting it top to bottom, line by line.
  6. The results are sent back to the web server, which passes the results to the browser.