Question: Need central links file

Discussion in 'HTML & Website Design' started by freerblog, Apr 24, 2008.

  1. #1
    Hi,

    I have a nagging question. I would like to have links between multiple sites, but instead on putting them on each site I would like to create a .txt file which would have the links on it and then just insert the text file on each site.

    Any advice as to how to do this?

    Thanks,
    Michael
     
    freerblog, Apr 24, 2008 IP
  2. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #2
    It may be easier to just put the links in a database (like MySQL or SQL server) and just have each site pull them from the DB.

    You could do it from a flat file though, like a .txt file - what language does your server support, PHP or .NET?
     
    itcn, Apr 24, 2008 IP
  3. freerblog

    freerblog Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Hi,

    Thanks for the response, I am do not have any knowledge when it comes to coding so quite honestly I do not know where to start. Any suggestions? Could I put a .txt file in a directory of one of the sites? But how do I get the .txt file to show the links on my blog?

    Thanks for the help,
     
    freerblog, Apr 24, 2008 IP
  4. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #4
    Well, if you can't do any server-side coding (i.e., PHP or ASP) you can just open the txt file in an iframe.

    But the best solution is to either start researching/learning PHP or ASp.NET or else pay someone to create it for you, it's a very simple job you could get done quite cheap.
     
    itcn, Apr 24, 2008 IP
  5. freerblog

    freerblog Active Member

    Messages:
    163
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    #5
    Hi, thanks for the advice, could you please just give me a template example with php. Lets say my text file with the links are at domain.com/links.txt, what would the php look like?

    I could then insert which my file is and be all set.

    Thanks again,
    Michael
     
    freerblog, Apr 27, 2008 IP