这是我第一次编写PHP代码来发送短信
SMPP短消息对等协议通过onlinecity php-smpp库从gethub:**,我使用了下面发送短信的代码,但是它唯一的响应是一个错误**返回值是错误0x34 (ESME_RINVDLNAME)无效的分发列表名。**所以请帮助我解决这个错误。
<?php
$GLOBALS['SMPP_ROOT'] = dirname(__FILE__); // assumes this file is in the root
require_once $GLOBALS['SMPP_ROOT'].'/protocol/s
我试图实现发送短信的这个项目,我正在使用PHP的工作。注意:我的意思不是发送运营商的免费短信和其他东西,我实际上联系了一家短信公司,他们提供了这样的www.smssender.com?username=myusername&pass=mypass&message=mymessage&recipient=phonenumber链接。
PHP中的哪个函数可以用来向服务器API发送这样的请求,并获得响应?这是我想要的(伪代码):
function Sendsms(){
add details to sting
send url to sms server with t
我有一个PHP页(index.php),在这里,在登录一个表单后,我可以在另一个表单中发送短信。通过WWW::机械我能够登录(如果我打印响应它正确地显示第二个表单发送短信),但我不能提交另一个表单,如果我打印响应我得到提交短信页面而不是短信结果页面。这是一段代码片段,我是不是漏掉了什么?
use WWW::Mechanize;
use strict;
use warnings;
my $to = 'xxxxxxx';
my $text = 'test';
my $mech = WWW::Mechanize->new();
$mech->get(