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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/47415-changing-php-extension/#findComment-231470 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.