1
我想將SMS集成到我的API並嘗試傳遞URL中的變量,但它說錯誤,找不到數字。如何通過file_get_contents傳遞URL中的變量值
請幫
$sender = "9999708993";
$reply_message = "This is an auto generated message";
echo $sender;
echo $reply_message;
$lines = file_get_contents('http://sms2.oxyzen.in/httpapi/sendsms.php?loginid=myid&password=mypassword&senderid=mysenderid&message=$reply_message&number=$sender');
echo "<pre>$lines</pre>";
我有也嘗試過。我收到了同樣的消息,ERROR |沒有找到號碼 – user3438532
請參閱此問題的其他內容,請嘗試 – edmondscommerce
我已嘗試添加代碼以及我已收到此....字符串(277)「http://sms2.oxyzen.in/httpapi/sendsms.php &number = 9999708993「string(23)」ERROR | No Number Found「 ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR | ERROR |沒有找到號碼 – user3438532