include file

Discussion in 'Web Design, HTML And CSS' started by Mariam, Sep 10, 2009.

  1. Mariam

    Mariam New Member

    Joined:
    Sep 9, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    Suppose I have include.php file.

    Is it possible to include this file to index.php in that way that all variables that has been assigned in index.php , include.php must uderstand.
     
  2. Mariam

    Mariam New Member

    Joined:
    Sep 9, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    P.S. I used xmlhttp.open("GET",'include.php',true); to include the file
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,351
    Likes Received:
    382
    Trophy Points:
    83
    Why not directly include('index.php');
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice