下面这段Curl是在命令行执行的格式,请问放到PHP里头该怎么写呢?
curl ‘https://api.twilio.com/2010-04-01/Accounts/[AccountID]/Messages.json’ -X POST –data-urlencode ‘To=+86[Number]’ –data-urlencode ‘MessagingServiceSid=[ServiceID]’ –data-urlencode ‘Body=123456是您的验证码’ -u [AccountID]:[AuthToken]复制代码
台湾省网友说:exec(“curl ‘https://api.twilio.com/2010-04-01/Accounts/[AccountID]/Messages.json’ -X POST –data-urlencode ‘To=+86[Number]’ –data-urlencode ‘MessagingServiceSid=[ServiceID]’ –data-urlencode ‘Body=123456是您的验证码’ -u [AccountID]:[AuthToken]”);
海南省网友说:奇怪,怎么回复不了
哦能回复了,看来是那段代码不让发
云南省网友说:剪切板 https://cl1p.net/
云南省网友说:大概这样
https://cl1p.net/uqzsfrdqccaxo
云南省网友说:用exec函数