Link to another website (Display target)

Discussion in 'HTML & Website Design' started by adonato, Mar 10, 2007.

  1. #1
    Ok, I have a question that I am posing the digital point community. It will probably seem novice to all you pros out there, but I cant figure it out.

    I have a network of 20 websites. And I have a link page (listing all 20 sites) on each page. Rather than change the index file of each page every time I add a link, I would like to edit just one.

    Basically, I want to create an html document that contains my entire list and put in on my server. (that part was easy ... I called in family.html)

    Now I want it to display on my other sites. What is the coding for that? Let's assuming the file is located at http://www.domainname.com/family.html

    <a href=""> will not work because it just displays the link.

    I want the actual html doc to open and display all 20 links. Then when I change the family.html doc, every website will automatically update.

    What is the coding for that? I assuming there is a different <a> command that I do not know.

    I appreciate the help & input!
    Anthony
     
    adonato, Mar 10, 2007 IP
  2. chuckd1356

    chuckd1356 Active Member

    Messages:
    770
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Well you can use php... Can your server parse php?

    Could you post your site?
    And do you want to do something like proxies do?
    eg. http://www.browsedark.com
    How he has all the links at the bottom for the rest of his network?
     
    chuckd1356, Mar 10, 2007 IP
  3. adonato

    adonato Guest

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That is exactly what I want to do. They are proxies. But instead of 5 going across I have 20 in a list. I want to update 1 html or php file and have it change on all the sites.
     
    adonato, Mar 10, 2007 IP
  4. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, I think this should be reasonably easy to do if you use PHP includes on the sites.

    In your sites place the following code:
    <?php
    include("http://www.domainname.com/family.html");
    ?>
    PHP:
    That should work if your server can parse PHP in HTML. If not add the following to your HTACCESS file.
    AddType application/x-httpd-php .php .htm .html
    Code (markup):
     
    Crusader, Mar 10, 2007 IP
  5. chuckd1356

    chuckd1356 Active Member

    Messages:
    770
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Well, he has to have php installed on his server to be able to parse php. The addtype won't magically install it.
     
    chuckd1356, Mar 10, 2007 IP
  6. Crusader

    Crusader Peon

    Messages:
    1,735
    Likes Received:
    104
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That goes without saying. The addtype is just there if you want to parse the PHP in HTML files. Eg, the site uses normal HTML files instead of PHP based ones. Of course the server needs to have PHP installed in order for any PHP to work!
     
    Crusader, Mar 10, 2007 IP