/ Web Development / PHP

Article ID:  00189
Rating:  3.7 / 5.0 (3 votes)
Views:  1378
Created:  Aug-24-2006

Rating
Did you find this article helpful?


Email Article To A Friend

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