maheswaran Posted November 1, 2007 Share Posted November 1, 2007 Hi, I want to change the php file extension .php into some one like .abc Is there possible to change this?. Thanks in advance Mahes Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/ Share on other sites More sharing options...
Prismatic Posted November 1, 2007 Share Posted November 1, 2007 It is if you have access to the servers httpd.cfg file (Apache's Configuration file, this is also assuming you have Apache) Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/#findComment-382589 Share on other sites More sharing options...
maheswaran Posted November 1, 2007 Author Share Posted November 1, 2007 yes i have httpd.conf file. Is that u said?. Then how can i do this (Am using xamp) Thanks in advance Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/#findComment-382593 Share on other sites More sharing options...
~n[EO]n~ Posted November 1, 2007 Share Posted November 1, 2007 Add the bold line in httpd.conf AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .abc AddType application/x-httpd-php .php3 it will only work in your machine, but you won't have access to httpd.conf in your hosting server Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/#findComment-382595 Share on other sites More sharing options...
maheswaran Posted November 1, 2007 Author Share Posted November 1, 2007 yes it is working in my system Any thank u very much Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/#findComment-382600 Share on other sites More sharing options...
revraz Posted November 1, 2007 Share Posted November 1, 2007 Most hosts give you access to .htaccess though. n~ link=topic=165939.msg730107#msg730107 date=1193902226] Add the bold line in httpd.conf AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .abc AddType application/x-httpd-php .php3 it will only work in your machine, but you won't have access to httpd.conf in your hosting server Link to comment https://forums.phpfreaks.com/topic/75613-change-the-php-extension-into-some-thing/#findComment-382743 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.