我想发送一个使用API的短信。file_get_contents()问题,工作正常本地不在服务器
使用file_get_contents()
,消息从我的本地计算机发送成功,但它不在我的服务器上运行。我收到此警告:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /usr/home/....
我该如何解决这个问题?
请显示您的代码。它看起来像是将'/ usr/home'解释为主机名,这是不正确的。 – Mat
不,这是文件名。 –