Re: File extensions
- From: Norman Peelman <npeelman@xxxxxxxxxx>
- Date: Mon, 26 Feb 2007 21:49:50 -0500
J.O. Aho wrote:
shimmyshack wrote:#allow only .php and .htm to be parsed for php code
your server is set up to execute the php inside the files if they end
in .php which is normal. Stuart meant that if you have control over
the server you could change this to say only .pjio files or
a .phtml, .php and .php5 all at once etc.. whatever you choose
There is those who uses
AddType application/x-httpd-php .html
Which will cause the server to work extra as it will parse all html files, of which most usually don't have any php at all.
AddType application/x-httpd-php .php .htm
#allow .php, .htm, and .mycustomextension to be parsed for php code
AddType application/x-httpd-php .php .htm .mycustomextension
All other extensions (unless dealt with appropriately) will be served as static HTML, eg: .html, .shtml, .mystatichtml, etc.
Norm
.
- Follow-Ups:
- Re: File extensions
- From: Thad
- Re: File extensions
- References:
- File extensions
- From: Thad
- Re: File extensions
- From: Stuart Millington
- Re: File extensions
- From: Thad
- Re: File extensions
- From: shimmyshack
- Re: File extensions
- From: J.O. Aho
- File extensions
- Prev by Date: Re: File extensions
- Next by Date: Re: File extensions
- Previous by thread: Re: File extensions
- Next by thread: Re: File extensions
- Index(es):
Relevant Pages
|