Page 1 of 1

htaccess add TEXT handler to PHP extention!

Posted: Sat May 05, 2007 1:10 pm
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?

Posted: Sat May 05, 2007 10:48 pm
by Ambush Commander
I'm not sure what you mean by a text handler. Do you mean "show source code?"