Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Linking host-file sources

  • 16-03-2011 01:41PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 Posts: 21,278 ✭✭✭✭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, Registered Users 2 Posts: 3,495 ✭✭✭Abelloid


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


  • Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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, Registered Users 2 Posts: 21,278 ✭✭✭✭Eoin


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


Advertisement