The document summarizes how PHP works by describing the interactions between clients, web servers, PHP script engines, and databases. When a user requests a PHP page, the web server passes the PHP code to the PHP script engine. The engine parses the PHP code and converts it into HTML which is sent to the user's browser. If the PHP code accesses a database, the PHP engine sends queries to the database engine and returns the results.