Re: php with .html extension in iis5
| From: | Hugh Bothwell | Date: | Fri, 06 Jul 2001 14:27:16 +0000 |
| Subject: | Re: php with .html extension in iis5 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8150@lists.php.net to get a copy of this message | ||
In your server config file, edit
AddType application/x-httpd-php .php3 .php .php4 .htm .html
and remove any other MIME mappings for .htm or .html. Voila - you just told
your server that all .html files should be processed as PHP.
If you have some .html files that don't need preprocessing, I've heard of
people running two servers on different ports - Apache for all the files
that need processing and something small and fast like OmniHttpd to serve
static files and images. Can anyone give advice about this?
"abe wong" <psiflare@xenopsi.com> wrote in message
news:20010705175501.37062.qmail@pb1.pair.com...
>
> i tried to make .html files run php with limited success (i have to...i'm
> migrating from a unix server with a ton of .html php files)... i set the
> isapi application mapping (i'm running php as an isapi extension), and yet
> i'm getting totally inconsistent results... sometimes, on rare occasion,
it
> works. most other times, the screen's blank, but a view source shows ascii
> gibberish. the rest of the time, php doesn't work and the files are shown
> without any processing.
>
>
>
> help would be greatly appreciated.
>
> thanks.
>
> -abe wong
>
>