/ Web Development / PHP
Article ID: 00189Rating: 3.3 / 5.0 (7 votes)
Views: 2190
Created: Aug-24-2006
Using .php extension with php5
Issue
I would like to use php5 on my web site but do not wish to use the default .php5 extension. Is there a way to use .php instead?
Solution
By default .php uses PHP 4. To make the change to PHP 5, login to your control panel and select "User Apache Handlers". Create a new apache handler with this info:
Handler: application/x-httpd-php5
Extension: php (without the period)
All files now will use PHP 5 on your web site.
Handler: application/x-httpd-php5
Extension: php (without the period)
All files now will use PHP 5 on your web site.
