|
-
Nov 3rd, 2009, 10:23 PM
#1
[RESOLVED] .php or .html
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
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Nov 3rd, 2009, 11:26 PM
#2
Re: .php or .html
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.
-
Nov 4th, 2009, 02:20 AM
#3
Re: .php or .html
 Originally Posted by kows
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.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Nov 4th, 2009, 06:57 AM
#4
Re: [RESOLVED] .php or .html
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
-
Nov 4th, 2009, 03:58 PM
#5
Re: [RESOLVED] .php or .html
 Originally Posted by I_Love_My_Vans
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.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|