You might be able to create a modified XBitHack Apache module which, essentially checks to see if the a file has the "x" (execute) bit set under permissions. If so, then it parses the file, if not, then it displays as a regular html file. This is normally used for server side includes, but you could probably modify the script to execute it as a php file instead.

~Rolan

Elliotte Harold wrote:
Suppose I don't want it to be so obvious that I'm using PHP on a site, Or that I just want the freedom to not always use PHP in a given document. Thus I decide to configure Apache to treat all .html files as PHP files.

How much overhead does this add for the common case when a file only contains static data, no PHP? Would I notice the hit?

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to