shakeelstha Posted April 17, 2007 Share Posted April 17, 2007 How to change .php extension into some other extension, the core remaining the same as normal php Link to comment https://forums.phpfreaks.com/topic/47415-changing-php-extension/ Share on other sites More sharing options...
wildteen88 Posted April 17, 2007 Share Posted April 17, 2007 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. Link to comment https://forums.phpfreaks.com/topic/47415-changing-php-extension/#findComment-231470 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.