htaccess add TEXT handler to PHP extention!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
JustinMs66
Forum Contributor
Posts: 127
Joined: Sun Sep 03, 2006 4:18 pm

htaccess add TEXT handler to PHP extention!

Post by JustinMs66 »

i use this code in my main .htaccess file to add my custom phpini file to any php extenion:

Code: Select all

Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
what i want to do, is add the TEXT hander to all php file extentions. so i'm guessing you could modify the above code to do such a thing, but i am just wondering what the TEXT hander would be called? any suggestions/ideas?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I'm not sure what you mean by a text handler. Do you mean "show source code?"
Post Reply