/ Web Development / PHP

Article ID:  00189
Rating:  3.4 / 5.0 (22 votes)
Views:  4309
Created:  Aug-24-2006

Rating
Did you find this article helpful?


Print Article


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.

Related Articles