change links/content on several sites at once?

Discussion in 'Link Development' started by Lpspider, May 19, 2007.

  1. #1
    I'm not sure if this is the correct place to post this or not. But basically what I'm looking for is a script that will let me change content on multiple sites at once that's on the same server.

    All I want to do is have a snippet of code on say 25 websites at the bottom of ever page. I want to be able to change the content (links particularly) on all 25 websites at once instead of doing it one at a time, manually.

    Thanks,
     
    Lpspider, May 19, 2007 IP
  2. Lpspider

    Lpspider Well-Known Member

    Messages:
    2,216
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Anyone? Little help?
     
    Lpspider, May 20, 2007 IP
  3. danielro

    danielro Active Member

    Messages:
    187
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Yeah this is a simple task, but it does require PHP support from your web-sites.
    Create a php file and name it snippet.php
    The file could look like this :
    <?
    echo "first snippet <br />";
    echo "secound snippet < br/>;"
    ?>

    Save this file on a web-server and then edit every website once and include this file to the bottom or wherever you want the content to be included.
    Lets say you uploaded the snippet.php file to example.com/snippet.php
    Now go to your websites and insert the following line where you want the snippets to be displayed:
    <?
    include('http://example.com/snippet.php');
    ?>

    And now whenever you need to change the snippets on the website you only have one file to edit, that is: example.com/snippet.php
    Good luck
     
    danielro, May 20, 2007 IP