+ Reply to Thread
Results 1 to 4 of 4

Thread: include header and footer.php

  1. Join Date
    Jul 2005
    Posts
    13

    include header and footer.php

    Hi ,

    I saw this other topic

    http://www.dev-forums.com/index.php?showtopic=175

    but i'd like to use

    <?php require("http://www.domain.com/header.php");?>

    whois script

    <?php require("http://www.domain.com/footer");?>


    I tried adding appropriately [as i saw it] to templates and whois.php but without luck

  2. Join Date
    Aug 2004
    Posts
    781

    include header and footer.php

    Please realize that you should NEVER include a page with its full URL, as this causes extra strain on the server that just isn't needed. Additionally, it causes the server to download itself, which is strange.

    Use absolute paths. Research them if you do not know what they are (basically, an absolute path is simply the file system path (/path/to/file if linux or C:\path\to\file if windows) instead of the webserver path.

    Ask your webhost for more information.

  3. Join Date
    Jul 2005
    Posts
    13

    include header and footer.php

    Please realize that you should NEVER include a page with its full URL, as this causes extra strain on the server that just isn't needed. Additionally, it causes the server to download itself, which is strange.

    Use absolute paths. Research them if you do not know what they are (basically, an absolute path is simply the file system path (/path/to/file if linux or C:\path\to\file if windows) instead of the webserver path.

    Ask your webhost for more information.
    !!! - thx for that - i've been using full path includes all over the place. Once when I tried it somewhere I got this error message which I saved cos it was so wierd

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2949120 bytes) in http://www.idomain.com/include.php on line 91346

    - guess that explains it!

  4. Join Date
    Jul 2005
    Posts
    13

    include header and footer.php

    Your excellent script taught me what the abs path was with auto-detect. thx again.

+ Reply to Thread

Posting Permissions

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