SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Mo Money's Avatar
    Join Date
    Nov 2002
    Posts
    274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow includes, requires, loading? help!

    Is it ok to have an include within an include, or will that slow your page down to much. For example: include header.php and within header.php for the nav section you include navigation.php. Is this ok?


    Also, what is the difference between: include, require, require_once ?
    AbcArcade.com - free internet games!

  2. #2
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes, you can have includes inside includes.

    http://www.php.net/include
    http://www.php.net/require
    http://www.php.net/require_once

    The manual does a nice job of explaining them.
    Mike
    It's not who I am underneath, but what I do that defines me.


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
  •