PHP execute on different file extension

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

PHP execute on different file extension

Post by HiddenS3crets »

I'm trying to allow php run on a different extention. I tried doing this in a .htaccess file, but it did not work

Code: Select all

AddType application/x-httpd-php .ext
Is that the right mime type to use?
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

if

Code: Select all

AddType application/x-httpd-php .ext
does not work then either:

your host doesn't allow this type of override in their httpd.conf file, ask them if they can change this
your host uses something other then .htaccess files (it could be an arbitrary file name, contact your tech support dept.)
your host doesn't allow overides in any kind of file (ask them to add it manually for your virtualhost, if they can not accommodate you switch hosts.

I hate how shared hosting is degrading in quality to the level of free hosting, that is why I shell out the 25 bucks a month for a virtual private server
Post Reply