Thursday, May 6, 2010

How PHP Is Parsed

So you have a file, and in that file you have some HTML and some   PHP code. This is how it all works, assuming a PHP document with an extension of   .php.

  1. The Web browser requests a document with a .php extension.
  2. The Web server says, “Hey! Someone wants a PHP file.   Something else needs to deal with it,” and sends the request on to the PHP   parser.
  3. The PHP parser finds the requested file and scans it for PHP   code.
  4. When the PHP parser finds PHP code, it executes that code   and places the resulting output (if any) into the place in the file formerly   occupied by the code.
  5. This new output file is sent back to the Web server.
  6. The Web server sends it along to the Web browser.
  7. The Web browser displays the output.  [Read More...]
Blog Directory
Blog Directory
BritBlog
Technology Blogs - Blog Rankings
blogarama - the blog directory
Site tools
Site tools
GetBlogs Blog Directory
Computers Blogs
Blog Listings

No comments:

Post a Comment