>  기사  >  백엔드 개발  >  PHP免费发送短信代码(利用中国移动飞信)(1/3)_PHP教程

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

WBOY
WBOY원래의
2016-07-20 11:08:281048검색

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으로 문의하세요.