PHP file_get_contents does not work on localhost

You need to also check in PHP.ini file

extension = php_openssl.dll

is enable or not, if not then just enable that by removing ; sign

allow_url_fopen = on

Leave a Comment