/    Sign up×
Community /Pin to ProfileBookmark

.php and .php.htm?

I saw a website where the pages were saved as pagename.php.htm. However, when the forms were referenced, they referenced a page called pagename.php. Can anybody explain what’s going on? Here is a link to the site:

[url]http://trivium.org/[/url]

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@The_Little_GuyMar 29.2007 — I think that it is just a normal html file, nothing fancy can be done with it except HTML/CSS/JavaScript
Copy linkTweet thisAlerts:
@AscendancyauthorMar 29.2007 — So what is the purpose of having two files with the same name, one an HTML file and one PHP file, wouldn't you just have one PHP file with the code and HTML together?
Copy linkTweet thisAlerts:
@itbeingsMar 30.2007 — Belief me you can name you file anything like index.asp.php.jsp.cfm.html

The .html being the final extension is only recognizes.
Copy linkTweet thisAlerts:
@AscendancyauthorMar 31.2007 — Hm, so what is the purpose of creating the confusion of having the .php.htm and the .php?
Copy linkTweet thisAlerts:
@pcthugMar 31.2007 — Probably just the way the webmaster of the site decided to organize the filesystem, nothing beyond that.
Copy linkTweet thisAlerts:
@sitehatcheryMar 31.2007 — It could be a way of separating the PHP code from the HTML. It could be that the HTML in the page.php.html is included in page.php. It could be an easy way to identify which HTML pages go with which PHP pages.
Copy linkTweet thisAlerts:
@metrostarsMar 31.2007 — You can however, set your .htaccess up to parse PHP in .html files

look here

http://www.desilva.biz/php/phpinhtml.html
Copy linkTweet thisAlerts:
@AscendancyauthorMar 31.2007 — Oh yea, I never thought of adding .html or .htm to the list of files to be checked for PHP, that's smart. I am not sure if that's what he did, but I understand that he probably just separated the HTML with the PHP.
×

Success!

Help @Ascendancy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...