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 Quote 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) Quote 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 Quote 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 Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.