Is there a way to check to see if a link comes up with an error and if so then load an alternate link?
For example, say I have a link to a file on another server, if that link is down, can it then load the alternate link?
try @fopen() (or other similar function) to check if the url is reachable. the @ will suppress errors and if it returns a false value, supply an alternate link