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

Your name:

Reply:


Posted by Michael Fesser on 12/05/07 21:20

..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.

Cool URIs don't change
http://www.w3.org/Provider/Style/URI

| What to leave out
| [...]
| * File name extension. This is a very common one. "cgi", even ".html"
| is something which will change. You may not be using HTML for that
| page in 20 years time, but you might want today's links to it to
| still be valid. The canonical way of making links to the W3C site
| doesn't use the extension.
| * Software mechanisms. Look for "cgi", "exec" and other give-away
| "look what software we are using" bits in URIs. Anyone want to
| commit to using perl cgi scripts all their lives? Nope? Cut out the
| .pl. Read the server manual on how to do it.

Micha

[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

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