Describe how PHP Works.Any PHP web page first interacts with the interpreter once a request I sent from the browser. This interpreter in turn interacts with file systems, database and mail servers. To configure PHP, php.ini file is used. The interpreter uses this ini file to check the settings. PHP interpreter processes statements enclosed in <?php?>. Each statement ends with a semi colon which directs the interpreter that it is the end of the statement.Describe how PHP Works.PHP stands for Hypertext PreProcessor. It is a general purpose server side scripting language which is particularly suited for web development and can be embedded into HTML. PHP script is always executes on the server. Only the end result is sent to the browser.
The PHP script is embedded in <?php and ?> . This is the instruction to the web server (usually Apache web server) to execute PHP code. The functionality is performed and result of expressions, echo statement etc., is being executed by the web server and the server in turn returns the result of echo statement, interacts with database etc. Using PHP, thousands web pages can be uploaded, being it is dynamic.
|