Jump to content

Changing php extension


Recommended Posts

That will be controlled by your server. For example if you have Apache installed you'll have a line like this:

AddType application/x-httpd-php .php

Thats line tells the server to treat .php files as PHP. If you want to more extensions say .html you just add it in, ie:

AddType application/x-httpd-php .php .html

 

save the httpd.conf and restart Apache. if you add php code in .html files it will be parsed.

 

With other servers it may be different.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.