I want to download the contents of a URL using PHP, even if the HTTP response code is 404. file_get_contents will error out, and I wasn\'t able to find an answe
file_get_contents
Use cURL instead. It allows much greater control, and will let you read any content retrieved and the status code.