1
我發短信給移動使用twilio短信服務在PHP http://s.test.com?v=ccc,但在短信中它只顯示http://s.test.com作爲超鏈接丟失?v=ccc
部分。我怎樣才能讓它顯示這整個http://s.test.com?v=ccc作爲短信的超鏈接?PHP:如何顯示短信完整的超鏈接
這是我用來發送短信代碼:
function sendText($number, $id, $product_domain)
{
$short_url = 'http://s.'. $product_domain .'.com?v='.$this->toBase($id);
$client = new Services_Twilio(TWILIOSID, TWILIOTOKEN);
$client->account->messages->sendMessage("123-4567-9870", $number,
"Your Scope is complete ".$short_url." Customer Service 877.697.2673 . To disable this service reply with \"stop\"");
}
這$short_url
會http://s.test.com?v=ccc
這很奇怪,因爲你的代碼本身似乎很好。如果你找不到正確的答案,你可能會考慮將URL重寫爲'http:// s.test.com/ccc',因爲問題可能是由問號引起的。這樣做的第二個優點是你可以安全地輸入兩位數字。 –
感謝您的答覆,我會考慮這樣做,如果我沒有找到任何其他解決方案 – Haroon