我已经实现了kannel,我可以发送短信并成功接收短信。但我想将短信从手机发送到kannel。我将调用php文件来解析sms字符串,然后发送到get-url变量中的url。我想收到短信.php功能。这是我用于解析字符串短信的PHP脚本。
<?php
$rawPhoneNumber = "2+2=?; 4;5;6;3; 4; PTBB; 4,2,1,2";
$phoneChunks = explode(";", $rawPhoneNumber);
echo "Raw Phone Number = $rawPhoneNumber <br />";
echo "Questions = $phoneChunks[0]<br />";
for($i = 1; $i < count($phoneChunks)-3; $i++)
{
echo "Ans ($i) = $phoneChunks[$i] <br />";
}
echo "Correct Answer = $phoneChunks[5]<br />";
echo " Curriculum= $phoneChunks[6]<br />";
echo "SLO = $phoneChunks[7]";
?>