Results 1 to 2 of 2

Thread: PHP includes

  1. #1
    Join Date
    Sep 2008
    Location
    Italy
    Beans
    96
    Distro
    Ubuntu Studio 12.04 Precise Pangolin

    PHP includes

    I just learned how to use the PHP include function in my pages but now my question is about style. It seems like if I want to include footers, navigation, and other content, all my pages must basically have .php extensions. Is getting away from the .html bad style overall, or is it just a progression to using more dynamic code?

    I've been working with html for so long that it feels like I'm betraying an old friend! haha

  2. #2
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: PHP includes

    AFAIK there is no rule that says included files must have the .php extension. If you want to include plain HTML in a .html file, that is perfectly fine.
    「明後日の夕方には帰ってるからね。」


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •