SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2001
    Location
    new jersey
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    question about include

    Which way is better:

    <?php include('header.html'); ?>

    or

    <!--#include virtual="header.html"-->

    I can always rename my .html page to .php

    Any advantage over the other?

    Thanks
    I need a logo. Submit here.

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    using PHP's include function will process any PHP code within the included file, whereas the traditional SSI method will not.
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Member
    Join Date
    Dec 2001
    Location
    new jersey
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will not have any php code inside any of the include files.

    I was thinking of using the php include, because it would be much easier.
    I need a logo. Submit here.


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
  •