Forum Moderators: phranque

Message Too Old, No Replies

Running .html as PHP on FastCGI

         

Zandaline

7:16 pm on Dec 16, 2009 (gmt 0)

10+ Year Member



I've started using Fast CGI and noticed that some stuff is broken. Specifically, I used to parse some HTML files as PHP using the following in .htaccess:

AddType application/x-httpd-php html

Maybe I've been awake too long but I can't seem to figure out how to replicate the functionality after the switch. Can someone please point me in the right direction?

Regards,
Zandaline

jdMorgan

10:08 pm on Dec 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look into "AddHandler" instead of "AddType" -- Using AddType was an early kludge to get a 'hook' into the Apache API at an early enough time in the processing.

Our PHP Forum Library contains several posts on setting up PHP in various ways, and there's more PHP-specific knowledge over there.

Jim