I have issues with file_get_contents on my server for some yet unknown reason. I get the error below.
PHP Warning: file_get_contents(https://appleid.apple.com/auth/keys): failed to open stream: Connection refused in php shell code on line 1
It works locally and on my staging server, but not on production. It might have to do something with the server settings. It works if I replace it with CURL. Did anyone experience the same issue?
I suggest using CURL instead of file_get_contents since it's more secure in general.
I have issues with
file_get_contents
on my server for some yet unknown reason. I get the error below.PHP Warning: file_get_contents(https://appleid.apple.com/auth/keys): failed to open stream: Connection refused in php shell code on line 1
It works locally and on my staging server, but not on production. It might have to do something with the server settings. It works if I replace it with CURL. Did anyone experience the same issue?
I suggest using CURL instead of
file_get_contents
since it's more secure in general.