我有一个网站接收一些参数并返回一个电话号码。带var参数的PHP file_get_contents失败
这是呼叫我从其他页面做:
$phoneNumber= file_get_contents("https://page.company.test/?app=$appid&affiliateid=$affiliatep&laNG=en&country=$countryp&sav=$savactive");
它失败网址传递这样。我回应了整个网址,并设置了正确的变量。
但是,如果使用的URL这样的,它的工作原理:
file_get_contents("https://page.company.test/?app=tsc&affiliateid=main&laNG=en&country=au&sav=false");
我怎么错过?
你有没有https(与http)尝试? (file_get_contents(“http://tfnlicense.safebytes.com/?app=tsc&affiliateid=main&laNG=en&country=au&sav=false”);) – Vigikaran