How to change a text across multiple domains from one file, from one server?

Discussion in 'PHP' started by tdd1984, Mar 15, 2011.

  1. #1
    Is there a way I can control a brand name of a product across multiple domains. I am wanting to update the name of products from just one file. I have this product listed on about ~20 different domains. So I need to update the product name from time to time..

    Anyone know how I can do this from one file, on another domain or something?
     
    tdd1984, Mar 15, 2011 IP
  2. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
    #2
    The easiest way would be something like this:
    <?php
    $content = file_get_contents("http://yoursite.com/text.txt");
    echo $content;
    ?>
    PHP:
    text.txt contains the text you want.
     
    crazyryan, Mar 15, 2011 IP
  3. tdd1984

    tdd1984 Well-Known Member

    Messages:
    2,357
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    150
    #3
    sweet the actual domain from the file get contents should stay hidden correct?

    I should be able to include links this way as well right?
     
    tdd1984, Mar 15, 2011 IP