Difference between revisions of "PHP file"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(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...")
(No difference)

Revision as of 18:25, 20 September 2016

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.

See also

External links