Results 1 to 5 of 5

Thread: [RESOLVED] .php or .html

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Resolved [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

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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.

  3. #3

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: .php or .html

    Quote Originally Posted by kows View Post
    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

  4. #4
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    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

  5. #5

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: [RESOLVED] .php or .html

    Quote Originally Posted by I_Love_My_Vans View Post
    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
  •  



Click Here to Expand Forum to Full Width