/    Sign up×
Community /Pin to ProfileBookmark

file extensions

i am creating a web site and i am using PHP. Now if i have some web pages which are going to contain simple html code (i.e. no php in them), shall i save them as .html, or shall i save all the pages .php ?

Thanks

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scragarJan 07.2005 — .html is procesed fast as the server doesn't have to inspect it, on the other hand you might want to change the layout of the site which would leave this file alone...

it's up to you, if you can put up with halfdynamic content then do so, otherwise use whichever you prefare.
Copy linkTweet thisAlerts:
@CassiusauthorJan 07.2005 — thank you
Copy linkTweet thisAlerts:
@pyroJan 07.2005 — The performance hit of PHP processing static pages is going to be so minor that without knowing the specifics, I'd just save them all as .php if I were you, so they are ready if you want to add dynamic content to them...
×

Success!

Help @Cassius 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.18,
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,
)...