我正在尝试使用PHP文件发送短信。所有电子邮件属性都包含在URL中。这里的问题是,只有邮件的第一个字是只发送!消息只发送第一个字
我不知道为什么!
<?php
$url = "http://sms-gates.com/smspro/sendsms.php?user=myuser&password=mypass&numbers=".$_GET['mobile']."&sender=JobSeeker&message=".$_GET['msg']."&lang=en";
$link = fopen($url,"r");
while($res = fread($link,1024))
{
echo $res;
}
fclose($link);
?>
使用'file_get_contents'而不是所有'$ link'相关的东西。 – Jon
你用来测试什么'msg'的值? – Dev