用法如下<?php
require_once('includes/class.fetion.php');//上面的那些代码
$tophone=trim($_POST['tophone']);
$message=trim($_POST['message']);
$sms = new Fetion;
$sms->phone_num = trim($_POST['phone']);//$_CFG['sms_shop_mobile']
$sms->password = trim($_POST['fetion_password']) ;//$_CFG['sms_fetion_password']$sms->sip_login();
//$sms->sendSMS_toPhone($tophone,$message);//$_CFG['sms_shop_mobile']
$sms->sendSMS_toPhone($tophone,iconv('UTF-8', 'gb2312', $message));//$_CFG['sms_shop_mobile']
$sms->sip_logout();
echo $message;
?>
代报错Fatal error: PHP was not built with --with-socket, rebuild PHP to use the socket class.
in D:www\includes\class.SIPC.php on line 12
require_once('includes/class.fetion.php');//上面的那些代码
$tophone=trim($_POST['tophone']);
$message=trim($_POST['message']);
$sms = new Fetion;
$sms->phone_num = trim($_POST['phone']);//$_CFG['sms_shop_mobile']
$sms->password = trim($_POST['fetion_password']) ;//$_CFG['sms_fetion_password']$sms->sip_login();
//$sms->sendSMS_toPhone($tophone,$message);//$_CFG['sms_shop_mobile']
$sms->sendSMS_toPhone($tophone,iconv('UTF-8', 'gb2312', $message));//$_CFG['sms_shop_mobile']
$sms->sip_logout();
echo $message;
?>
代报错Fatal error: PHP was not built with --with-socket, rebuild PHP to use the socket class.
in D:www\includes\class.SIPC.php on line 12
然后在php.ini里面把;extension=php_sockets.dll之前的分号去掉,或者直接添加一行extension=php_sockets.dll。
然后重启apachelinux好像是ext/php_sockets.so的扩展,或者按照那个报错的说的在config时使用--with-socket重新编译下php
Fatal error: PHP was not built with --with-curl, rebuild PHP to use the curl classin class.curl.php on line 15
开sniffer软件,然后下载个飞信客户端,边在客户端上操作边观察sniffer,看它都向什么地址请求了什么参数。飞信的服务器端返回的全都是xml。我记得好像只有设置密码那里,飞信采用的是https协议,其它地方都是http。侦听https时,需要使用HTTPAnalyzerStdV2这个软件,否则一般的sniffer无法侦听https
2、将php.ini中的;extension=php_curl.dll中的分号去掉;
3、重启apache。测试是否安装成功:<?php$ch = curl_init();curl_setopt($ch,CURLOPT_URL,"http://www.google.cn");curl_setopt($ch,CURLOPT_HEADER,1);curl_exec($ch);curl_close($ch);?>文章出处:http://www.diybl.com/course/4_webprogram/php/phpjs/20071226/94231.html
2、将php.ini中的;extension=php_curl.dll中的分号去掉;
3、重启apache。测试是否安装成功:<?php$ch = curl_init();curl_setopt($ch,CURLOPT_URL,"http://www.google.cn");curl_setopt($ch,CURLOPT_HEADER,1);curl_exec($ch);curl_close($ch);?>
飞信机器人 有人搞出来用了 试了下不稳定 给朋友发的没收到 给自己的丢了一大半 还延迟了n久
Fatal error: get_ssiapp_signin() ERROR: XML has not been setted. in E:\webroot\fetion\includes\class.fetion.php on line 125
是怎么会事呢?我已经做过上面的准备工作了