Home : File Types : PHP File

.PHP File Extension

File TypePHP Source Code File

4.1 (557 Votes)
CategoryWeb Files

What is a PHP file?

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.

More Information
Screenshot of a .php file in Adobe Dreamweaver CC 2017
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.

Common PHP Filenames

index.php - Often the default file to be loaded when a client Web browser requests a directory from a PHP-enabled Web server. For example, if http://sampledomain.com/ is requested, http://sampledomain.com/index.php is loaded.

Open and view .PHP files with File Viewer Plus.

Programs that open PHP files

Updated 12/21/2018

About PHP Files

Our goal is to help you understand what a file with a *.php suffix is and how to open it.

The PHP Source Code file type, file format description, and Mac, Windows, Linux, Android, and iOS programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.