How do I create one links page file and show it on all my sites

Discussion in 'HTML & Website Design' started by vwdforum, Sep 8, 2008.

  1. #1
    Hello all.

    I'm starting to build a few sites and I would like to be able to update 1 file on one website with my all of my sites.

    I would then like to have a standard links page on my sites which grabs the content of the 1 file.

    So basically all my sites are linking to each other via a links page - I only have to update the 1 file.

    Does this make sense and does anyone know how to do it?

    Cheers

    Mally
     
    vwdforum, Sep 8, 2008 IP
  2. themaster

    themaster Well-Known Member

    Messages:
    934
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Is your server support PHP or ASP?
    You can do this including a file in each files.

    For php;
    Create a file that contains the links name it as whatever you want. Here i named is linksfile.php. And call this file from any of file. But your server should have php.
    <?php
    include 'http://www.yoursite.com/linksfile.php';
    ?>


    If you want to implement this code in a html file so you need to change your .htaccess file.
    Just add this line to you current .htaccess file;

    AddType application/x-httpd-php .html .htm
     
    themaster, Sep 8, 2008 IP