There is an error in fileopen ($url) on the server. How can I solve it?

the error message is:

Warning: file_get_contents (): php_network_getaddresses: getaddrinfo failed: Name or service not known

it is accessible to access the url directly in the local browser, and the domain name ping is also accessible in the server, that is, file_get_contents () reports an error. What is the reason and how to solve it?

Php
Feb.28,2021

the error of ping this url, is caused by the invalid url you entered.
it may also be a problem with the dns server.


is it a file permission problem

?
Menu