Is <!--include "formname.html--> equivalent to PHP command

Discussion in 'PHP' started by zopharmarcus, Nov 3, 2009.

  1. #1
    This is very important for me. please tell me if i use <!--include "formname.html--> will it be seen as a single page. Also, is it a good thing as per Search Engine perspective?
     
    zopharmarcus, Nov 3, 2009 IP
  2. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    include_once('filename.html')

    I believe that's what you're looking for.
     
    SecureCP, Nov 3, 2009 IP
  3. Scripts man

    Scripts man Guest

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this will work only if you using the phpbb
    because this is the system of its templete engine
    or if you want yo use the same sytax in other scripts you must use 'easy emplate' is great PHP Templates Engine
    http://www.jooria.com/scripts/PHP-Templates-Engine-118/easy-emplate-829/index.html
    Code (markup):
    but if you want any other PHP Templates Engine see this
    http://www.jooria.com/scripts/PHP-Templates-Engine-118/
    Code (markup):
     
    Scripts man, Nov 3, 2009 IP
  4. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #4
    jestep, Nov 3, 2009 IP
  5. nice.wallpapers

    nice.wallpapers Active Member

    Messages:
    142
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #5
    In php there are 2 functions that do this

    1st :

    <?Include("filename.html");?>
    PHP:
    2nd :

    <?Include_once("filename.html");?>
    PHP:

    Thanks,
    >Harry
     
    nice.wallpapers, Nov 3, 2009 IP
  6. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I mentioned this in a previous thread, STAY AWAY from include unless you seriously must.

    read or file_get_contents work better. no injections are possible.
     
    NatalicWolf, Nov 3, 2009 IP