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
Why can’t I run scripts uploaded by my additional FTP accounts?
Added on Fri, Mar 13, 2015
How do I upload a CGI script into my hosting account?
Added on Mon, Mar 16, 2015
What is PHP?
Added on Fri, Mar 13, 2015
What is JavaScript?
Added on Fri, Mar 13, 2015
Where is the dictionary directory?
Added on Mon, Mar 16, 2015