Master include file?

Discussion in 'PHP' started by anton-io!, Nov 1, 2005.

  1. #1
    Does anyone have any experience for this, here is the scenario:

    Example: I have 5 domain names on the same server.

    I would like to have one 'master' include file to be available to all domains for simple PHP scripts or function:

    If I use something like

    include ('http://www.something11111.com/masterfile.php');

    it just slows things down for the page to come up.

    Any recommendations?
     
    anton-io!, Nov 1, 2005 IP
  2. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #2
    If all sites are on the same server your can try something like
    include "/home/whatever/path/master.php";
    PHP:
    if they are on different servers, you can create + update the file on one server and let the others keep copies of it: update it hourly or something like that.
     
    frankm, Nov 1, 2005 IP
  3. honey

    honey Prominent Member

    Messages:
    15,555
    Likes Received:
    712
    Best Answers:
    0
    Trophy Points:
    325
    #3
    include "/home/whatever/path/master.php"; works perfect as long as the websites are on the same server.
     
    honey, Nov 2, 2005 IP
  4. palespyder

    palespyder Psycho Ninja

    Messages:
    1,254
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    168
    #4
    I am with the other two on this one, we have 20 something sites that use the same library of files and it works perfect.
     
    palespyder, Nov 2, 2005 IP