Reply to Re: Force apache to parse html files as php

Your name:

Reply:


Posted by Gary Hasler on 12/06/07 23:28

Ivan Marsh wrote:
>
> On Wed, 05 Dec 2007 22:20:58 +0100, Michael Fesser wrote:
>
> > .oO(Ivan Marsh)
> >
> >>On Wed, 05 Dec 2007 19:40:29 +0000, Gary Hasler wrote:
> >>
> >>> I want apache to parse all .html files for php code.
> >>
> >>May I ask why files that contain PHP code are being named .html and not
> >>.php?
> >
> > Some things simply don't belong to a URL.
>
> Who said anything about belonging in a URL? If you're stripping file
> extensions what difference does it make what the file extension is?
>
> The file extension tells the webserver how to interpret the file... so why
> not name PHP scripts .php rather than .html?

Because I'm switching to a PHP scripted menu / header include system,
that means I will need all 50 of our existing html pages to be processed
by PHP. And I'd rather not break our customers' existing bookmarks,
plus search engine links.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация