Re: File extensions



On Tue, 27 Feb 2007 01:55:03 +0100, "J.O. Aho" <user@xxxxxxxxxxx>
wrote:

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.

And it can mess up caching - as html files are usually static, whereas
php files have "on the fly generation times" - unless one is careful.
Can be useful, but not a good thing to do without looking at the
server load, as you mention, and bandwidth consequences.

--
------------------------------------------------------------------
- Stuart Millington ALL HTML e-mail rejected -
- mailto:phupp@xxxxxxxxxx http://www.z-add.co.uk/ -
.



Relevant Pages

  • Re: redirect / new website how to redirect old (google) links to new site ?
    ... But why use PHP for some other function such as processing form data. ... to process *all* .html files as php files is an unnecessary overhead. ... That's what a server is for. ... You only need an extension if you directly map a URL onto the server's ...
    (comp.lang.php)
  • Re: redirect / new website how to redirect old (google) links to new site ?
    ... But why use PHP for some other function such as processing form data. ... to process *all* .html files as php files is an unnecessary overhead. ... Your hosting company, for one, unless you're on a dedicated server. ... The extension just allows the server to do the most efficient processing of the file. ...
    (comp.lang.php)
  • Re: Need advice on SSI exec cmd and php files
    ... As this adds extra burden on the server I have it disabled by ... Whether SSI is really /needed/ depends on the content, ... only work if PHP was installed as a cgi. ... see that it's something else than html files. ...
    (comp.infosystems.www.servers.unix)
  • Re: redirect / new website how to redirect old (google) links to new site ?
    ... Configure your server to parse .html files for PHP. ... It's unnecessary overhead to parse static html files for PHP code. ...
    (comp.lang.php)
  • Re: Change included code
    ... Index.php is basically an html file uses a linked css file and when its included in the new file its referencing a css file in the wrong spot. ... It would actually be a bit more trouble since any time I want to upload to the server to test I will have to change the link. ... Would be easier just to have php just add "../" to one spot instead manually doing it every time I upload to the server. ... My server uses public_html to hold html files while my computer doesn't. ...
    (comp.lang.php)