HELP - 40 websites, want to use PHP include from just 1 site.

Discussion in 'PHP' started by snappingpig, Dec 21, 2007.

  1. #1
    I have 40 websites that are going to have a similar template: top.php, left.php, right.php and bottom.php.

    I don't want to go to all 40 websites to change each template file. Can someone provide a way so I can make an include statement like: include("http://www.mainsite.com/top.php"); so that parts of the template only have to be changed at a main site and the changes will be reflected automatically onto 40 different sites?

    Thanks
     
    snappingpig, Dec 21, 2007 IP
  2. BlueDevilMedia

    BlueDevilMedia Well-Known Member

    Messages:
    1,917
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Are all the sites hosted on one server???

    P.S. One site gets hacked...they all get hacked ;)
     
    BlueDevilMedia, Dec 21, 2007 IP
    snappingpig likes this.
  3. snappingpig

    snappingpig Banned

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, they are hosted on the same server.
     
    snappingpig, Dec 21, 2007 IP
  4. snappingpig

    snappingpig Banned

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the hint Blue Devil, I just figured it out.

    Best.

    rep: 1-up
     
    snappingpig, Dec 21, 2007 IP
  5. AMSAshley

    AMSAshley Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi, I can do this job for you for $40.00.

    Regards,
    Ashley
    Apollo Media Solutions
     
    AMSAshley, Dec 21, 2007 IP
  6. tushardhoot1

    tushardhoot1 Active Member

    Messages:
    3,013
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    90
    #6
    You can do it for free.

    Just put in a include on every site and they'll update.
     
    tushardhoot1, Dec 21, 2007 IP