Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Linking host-file sources

Options
  • 16-03-2011 1:41pm
    #1
    Registered Users Posts: 244 ✭✭


    Hi,

    newbie at this so be forgiving; is it possible to code (html) href="" a backup of a (image/pdf/doc) file in case one of the free hotlinking host providers goes off-line. I realise that if the image is missing it will default to the alt="image", but what if it's an important document.

    <a name="Picasa" id="Picasa"></a><a
    href="http://picasaweb.google.com/xxx"><img
    class="c1" alt="Picasa"
    src="http://filehost.com/picasa.jpg&quot; align="top"
    hspace="10" vspace="10"></a>

    Tried to Google but hard to get my question into a couple of words.


Comments

  • Registered Users Posts: 21,239 ✭✭✭✭Eoin


    I don't get what you're asking - could you explain what you want to do without using any HTML, as that might be confusing the issue.


  • Registered Users Posts: 3,495 ✭✭✭Abelloid


    If it's an important file host it with two services and offer a 'mirror' download.


  • Registered Users Posts: 244 ✭✭vedwards


    Thanks Eoin & JustinOval for replies;

    I'm not surprised that it's confusing as I can hardly extrapolate what I'm thinking but I think the 'mirror' download suggestion might point me in the right direction when Googling.

    Two files hosts (fileden & mediafire) host the same file (.pdf) but if fileden is down, mediafire kicks in so the file is always available.

    Looking for a simple script or html to accomplish this.


  • Registered Users Posts: 3,495 ✭✭✭Abelloid


    I think I get you, but how unreliable are the hosts? Do they not have their own mirrors to cover downtime?


  • Registered Users Posts: 437 ✭✭t1mm


    If I was to do this I'd write a "download.php" php script, and upon clicking a link, the user is redirected to the download page, which checks if the hosted files are available at server A, and if not, download the file from server B.


  • Advertisement
  • Registered Users Posts: 21,239 ✭✭✭✭Eoin


    I'd probably just host the file on a stable server myself.


Advertisement