Posted by Michael Fesser on 07/28/07 07:05
..oO(Jerry Stuckle)
>Matt S wrote:
>
>> For Apache of course. You just force the MIME type of .html files to be PHP
>> files. If you're using an executable directory so to say (+ExecCGI), you
>> could just put #!/usr/bin/env php at the top and it would be treated as a
>> PHP file regardless of file extension.
>
>And waste a hell of a lot of server resources parsing your static HTML
>files for PHP.
* using .htaccess you can enable that on a per-directory basis
* if you're using PHP for more than just a form on a single page, then
it doesn't matter, because all pages have to be parsed anyway
* the file extension .html (or no extension at all) is preferred for
stable URIs
>Thank &Diety most shared hosting environments don't allow this. What a
>bunch of crappola.
Not if done properly.
Micha
[Back to original message]
|