potresti verificare che il server sia raggiungibile prima di fare la "file_get_contents"