A PHP file is a webpage that contains PHP (Hypertext Preprocessor) code. It may include PHP functions that can process online forms, get the date and time, or access information from a database, such as a MySQL database.
PHP file open in Adobe Dreamweaver CC 2017
PHP files are typically only used by web developers who are creating or modifying PHP files when developing webpages with extended functionality. However, average users may download PHP files from a webpage using a web browser, such as Google Chrome or Mozilla Firefox.
The PHP code within the webpage is processed (parsed) by a PHP engine on the web server, which dynamically generates HTML. The HTML, which contains the webpage content, is then sent to the user's web browser.
Therefore, the user never sees the actual PHP code contained in the webpage, even when viewing the page source.