2. is_readable() check before trying to fopen() http://, if you happen to not have an internet connection this prevents ugly failures.