By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,721 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,721 IT Pros & Developers. It's quick & easy.

PHP on Microsoft-IIS/6.0

P: n/a

Is it possible to make IIS parse .html files the same way as Apache does
with AddType application/x-httpd-php .html in .htaccess?

Thanks,

Pierer
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Sat, 18 Sep 2004 21:00:55 +0000 (UTC), rc**@panix.com (Pierre Jelenc) wrote:
Is it possible to make IIS parse .html files the same way as Apache does
with AddType application/x-httpd-php .html in .htaccess?


Just tried the obvious method - add an application mapping to the PHP ISAPI
DLL for the .html extension in the same way as for the .php extension, and it
works here.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a
Andy Hassall <an**@andyh.co.uk> writes:
On Sat, 18 Sep 2004 21:00:55 +0000 (UTC), rc**@panix.com (Pierre Jelenc) wrote:
Is it possible to make IIS parse .html files the same way as Apache does
with AddType application/x-httpd-php .html in .htaccess?


Just tried the obvious method - add an application mapping to the PHP ISAPI
DLL for the .html extension in the same way as for the .php extension, and it
works here.


Hmm, not obvious to me! I've never used Windows, and the system is a
commercial NT-based host, where I only have access to my client's
directory tree.

Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 17 '05 #3

P: n/a
On Tue, 21 Sep 2004 00:26:53 +0000 (UTC), rc**@panix.com (Pierre Jelenc) wrote:
Andy Hassall <an**@andyh.co.uk> writes:
On Sat, 18 Sep 2004 21:00:55 +0000 (UTC), rc**@panix.com (Pierre Jelenc) wrote:
>Is it possible to make IIS parse .html files the same way as Apache does
>with AddType application/x-httpd-php .html in .htaccess?
Just tried the obvious method - add an application mapping to the PHP ISAPI
DLL for the .html extension in the same way as for the .php extension, and it
works here.


Hmm, not obvious to me! I've never used Windows, and the system is a
commercial NT-based host,


Windows 2003 presumably, since it's IIS 6.
where I only have access to my client's directory tree.


What sort of access? This needs to be done from the Internet Information
Services Manager; can't be done with just filesystem access (IIS doesn't do
..htaccess files for directory-level configuration within the filesystem like
Apache).

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4

P: n/a
Andy Hassall <an**@andyh.co.uk> writes:

What sort of access? This needs to be done from the Internet Information
Services Manager; can't be done with just filesystem access (IIS doesn't do
.htaccess files for directory-level configuration within the filesystem like
Apache).


Just filesystem I'm afraid. It looks like the site will have to be all
..php files. I think they can live with it.

Thanks,

Pierre
--
Pierre Jelenc | New on Home Office Records: Ethan Lipton
| www.homeofficerecords.com www.ethanlipton.com
The Gigometer | Pepper Of The Earth: the HO blog
www.gigometer.com | www.homeofficerecords.com/blog
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.