PHP file
From Wiki @ Karl Jones dot com
Revision as of 17:25, 20 September 2016 by Karl Jones (Talk | contribs) (Created page with "A '''PHP file''' is a text file which has the '''.php''' file extension. PHP files contain PHP code, or a mix of PHP code and HTML. The PHP code goes inside...")
A PHP file is a text file which has the .php file extension.
PHP files contain PHP code, or a mix of PHP code and HTML.
The PHP code goes inside one or more PHP code islands.
Web browsers and PHP
In order for a web browser to view a PHP file as a web page, the browser must make a request (computing) to a web server, so the server can process the PHP code and send a response to the server.
Web browsers cannot use the "Open File" command to view a PHP file. "Open File" works with HTML pages. But the PHP code in a PHP file must be processed by a web server. The browser does not process the PHP.