Click to See Complete Forum and Search --> : file extensions


Cassius
01-07-2005, 07:06 AM
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

scragar
01-07-2005, 07:10 AM
.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.

Cassius
01-07-2005, 07:12 AM
thank you

pyro
01-07-2005, 10:53 AM
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...