Home » Categories » Multiple Categories

What file extensions will run PHP?

By default, all files with the following extensions will run PHP:

  • .php
  • .php3
  • .php4
  • .php5

.php files will run under the current default PHP version, and .php3, .php4, and .php5 will run under the specified version of PHP (for example, .php3 files will run under PHP3).

You can also run PHP code in .html or .htm files by adding it as a handler in your .htaccess file.

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Is imagick available on your servers?
Added on Mon, Mar 16, 2015
Can I use command line arguments with a PHP scheduled task?
Added on Mon, Mar 16, 2015
How do I use gzip on my website?
Added on Mon, Mar 16, 2015
Do you support Zend Optimizer?
Added on Wed, Apr 8, 2015
Why is my custom php.ini file not working?
Added on Thu, Apr 9, 2015