application/x-php
PHP script
| Description | PHP script |
|---|---|
| File extensions | .php, .php3, .php4, .php5, .phps |
| Based on | text/plain |
| Signature (magic bytes) | 3C 3F 70 68 70 (<?php) |
Frequently asked questions
What is the MIME type application/x-php?
application/x-php denotes “PHP script”.
Which file extension does application/x-php use?
Files of type application/x-php usually end in .php, .php3, .php4, .php5 and .phps.
How does a web server serve application/x-php correctly?
With the header Content-Type: application/x-php. In nginx: types { application/x-php php php3 php4 php5; }; in Apache: AddType application/x-php .php .php3 .php4 .php5.