.php5 PHP script
Text & source code
| MIME type | application/x-php |
|---|---|
| Description | PHP script |
| Category | Text & source code |
| Signature (magic bytes) | 3C 3F 70 68 70 (<?php) |
| Based on | text/plain |
| Other extensions | .php, .php3, .php4, .phps |
Frequently asked questions
What is a .php5 file?
A .php5 file is a “PHP script” (MIME type application/x-php).
How do I open a .php5 file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .php5 file?
By the bytes at the start of the file, the signature (magic bytes): 3C 3F 70 68 70 (<?php). On Linux and macOS, file --mime-type example.php5 checks the real type regardless of the extension.
Which format is .php5 based on?
Technically a .php5 file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .php5?
The MIME type is application/x-php. In the Apache web server: AddType application/x-php .php5; in nginx: types { application/x-php php5; }.