.htm extension resolving to .php?
Posted: Thu Feb 02, 2006 10:41 am
I just discovered an error in a script - but it has been functioning nonetheless for years.
I'm using a script named club_store_parser.php. But I discovered that in another script I have a link to it as club_store_parser.htm (and there is no document with that name anywhere).
So, it'll call something like
../../club_store/club_store_parser.htm?page=club_store_detail&refer=shed&id=02500363
when it should really be
../../club_store/club_store_parser.php?page=club_store_detail&refer=shed&id=02500363
But it works just fine - I've tested it thoroughly.
I was wondering -- why is this? The browser can't find a file of that name with .htm, so it loads the one with .php?
I'm using a script named club_store_parser.php. But I discovered that in another script I have a link to it as club_store_parser.htm (and there is no document with that name anywhere).
So, it'll call something like
../../club_store/club_store_parser.htm?page=club_store_detail&refer=shed&id=02500363
when it should really be
../../club_store/club_store_parser.php?page=club_store_detail&refer=shed&id=02500363
But it works just fine - I've tested it thoroughly.
I was wondering -- why is this? The browser can't find a file of that name with .htm, so it loads the one with .php?