php-apple-signin icon indicating copy to clipboard operation
php-apple-signin copied to clipboard

file_get_contents not working on server

Open tdxius opened this issue 4 years ago • 0 comments

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.

tdxius avatar Apr 23 '20 10:04 tdxius