Added fallback if allow_url_fopen is off