Click to See Complete Forum and Search --> : [RESOLVED] .php or .html
Nightwalker83
Nov 3rd, 2009, 09:23 PM
Hi,
I am currently creating the html/php version of a flash website I had previous created. I wanted to know if it is ok to name a page as a *.php even though it doesn't use php or should it be a *.html file? The major of the pages on the site will be *.php. However one or two pages don't contain any php code.
Thanks,
Nightwalker
kows
Nov 3rd, 2009, 10:26 PM
it doesn't really matter.
anything that has a PHP extension will in turn be parsed by the PHP interpreter; however, the interpreter ignores anything that isn't PHP-code, so it will "skip" over your HTML. this would probably give you a tiny bit of overhead (because the PHP interpreter is indeed being run on the file), but it's going to be completely unnoticeable, and probably irrelevant.
on a side note, I'm interested in knowing what you are doing to not have these one or two pages included in some kind of content management thing.
Nightwalker83
Nov 4th, 2009, 01:20 AM
it doesn't really matter.
anything that has a PHP extension will in turn be parsed by the PHP interpreter; however, the interpreter ignores anything that isn't PHP-code, so it will "skip" over your HTML. this would probably give you a tiny bit of overhead (because the PHP interpreter is indeed being run on the file), but it's going to be completely unnoticeable, and probably irrelevant.
Ah ok! Thanks
on a side note, I'm interested in knowing what you are doing to not have these one or two pages included in some kind of content management thing.
The two pages that I remember I have included which don't make use of php are the site map and copyright/privacy page. The site map will have links to all the pages on the site and the copyright and privacy page will just have the company copyright/privacy statement on it.
I_Love_My_Vans
Nov 4th, 2009, 05:57 AM
I know this is resolved, but I though i would add my 2 cents.
If I had the odd page that didn't include PHP I would still be inclined to use the .php file extension, if only to keep my script file types consistent. Also in some envinronments a .html file might open in a different editor to a .php file.
ILMV
Nightwalker83
Nov 4th, 2009, 02:58 PM
I know this is resolved, but I though i would add my 2 cents.
If I had the odd page that didn't include PHP I would still be inclined to use the .php file extension, if only to keep my script file types consistent. Also in some envinronments a .html file might open in a different editor to a .php file.
ILMV
Yeah, that's what I'm thinking too.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.