简体   繁体   中英

PHP : How to show complete hyperlink in sms

I am sending sms to mobile using twilio sms service in PHP http://s.test.com?v=ccc but in sms it only show http://s.test.com as a hypelink missing ?v=ccc part . how can I make it show this whole http://s.test.com?v=ccc as a hyperlink in sms ?

This is the code I am using to send sms :

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\"");
 }

This $short_url will be generated as http://s.test.com?v=ccc

http://s.test.com?v=ccc更改为http://s.test.com/?v=ccc解决我的问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM