.html to .php

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

Roja wrote:
nickman013 wrote:Would the php work?
Only if the server is configured to parse html as php.

But doing so means it is a php file, despite the .html extension.
Thanks for clearing that up for me. :)
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Roja wrote:
Sami wrote:You might have heard it's better to have say: site/user/1062/
Misleading. For the major search engines, that used to be true, but isn't any longer.
But URL's like that are better for High Geeks to navigate with.
User avatar
a94060
Forum Regular
Posts: 543
Joined: Fri Feb 10, 2006 4:53 pm

Post by a94060 »

Roja wrote:
nickman013 wrote:Would the php work?
Only if the server is configured to parse html as php.

But doing so means it is a php file, despite the .html extension.

it might be off topic,but

why would there be other extensions(shtml,cfm,asp,etc) if all can be parsed even if they had the extension of and html page? It would seem very redundant
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

a94060 wrote:it might be off topic,but

why would there be other extensions(shtml,cfm,asp,etc) if all can be parsed even if they had the extension of and html page? It would seem very redundant
Can and should are very different things. The option is provided so that if you are converting a site from one technology to another, you can do so without breaking links. For example, if this forum switched to one powered by Perl, with .pl extensions, every link to every page here would have to be updated. (Including links from other sites).

By default, however, the extensions generally map to the parser that should be used.

It is highly recommended NOT to remap those. Of course, there are situations where it can be extremely useful, so they offer it.
Post Reply