Show another files contents on another page

Discussion in 'Programming' started by Gamerz7, Sep 24, 2007.

  1. #1
    Gamerz7, Sep 24, 2007 IP
  2. best host world

    best host world Peon

    Messages:
    213
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi , you can use the function :
    include() ;

    
    
    <?php
    
    // index page
    // when you want to add content from another file in your directory just add 
    
    
    include ("directory/file.php") ;
    
    ?>
    
    PHP:
    and if you have use the HTML code :

    Try Iframe function ...

    i hope i have help with something !

    and learn more for the php include function into : php.net
    thanks
     
    best host world, Sep 24, 2007 IP
  3. Gamerz7

    Gamerz7 Well-Known Member

    Messages:
    407
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks for the reply :)

    I have already done this, but nothing shows up :?

    I dont think I really want to "include" it, its more like I want my index.php to be that file.

    Ive already tried just copying the file and pasting it in index.php but it still shows nothing.
     
    Gamerz7, Sep 24, 2007 IP
  4. ready2work

    ready2work Guest

    Best Answers:
    0
    #4
    I got confused by your reply.
     
    ready2work, Sep 24, 2007 IP