| How PHP interact with HTML with details?
Here i will exaplin how .php files get processed by the PHP processor below are some steps
(1)First of all user browser request webpage ending with .php extension and send request to server for that webpage.
(2)Server check this page if server does not find it it will sends back error.
(3)In next step if server will page will check extension of page if it is .html or .php
(4)If it is .html then server will send back that page to browser
(5)If it is .php then this page will handover to PHP processor.
(6)Now functioning of PHP processor starts it will scans the page line by line. And it will processes HTML page.
(7)If processor find HTML it passes that on as part of the processed HTML page it is building.
(8)If PHP script is there on the page the PHP processor may or may not output HTML.
(9)When PHP processor is done then processed page is handed to web server for sending to browser. | | |