How PHP Works
Published on March 4, 2010 @ 7:01 am
When a user is viewing .php extension webpage (such as index.php), the PHP process begins. The php statements within the page is requested by the web server and then its directed to the PHP interpreter. At this point the PHP interpreter does all the processing of the PHP page by commuunicating with file systems, databases, and email servers if it is necessary. Finally, once all the processes is completed the processed PHP statements is then sent back to the web server and is then delivered to the browser as nice readable PHP web page.
The process is illustrated in the diagram below:



