最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

php使用ICQ網(wǎng)關發(fā)送手機短信

 更新時間:2013年10月30日 15:25:49   作者:  
php發(fā)送手機短信實例代碼。

通過ICQ網(wǎng)關發(fā)送手機短信的php源程序

復制代碼 代碼如下:

<?
//###########################################################
//
// For questions and comments
// Roland (alias -=: Vlieg :=-)
// icq #78354631
// mail: vlieg@atoomnet.net
//
// NB: This script won't work on free hosting pages, because of the secure mode!
// NB: You must have registered your ICQ# at http://web.icq.com/sms/login/ in order for this script to work
//###########################################################

//****************************************************************\//Config:
$uin=""; //your ICQ number
$passw=""; //your ICQpassWord
$PRefix=""; //sms prefix
$phonenumber=""; //sms phone number
$message = "Hello!"; //sms message

//****************************************************************\// EN: calculate the content length
$contentlength= ( 37+
strlen($uin)+
strlen($passw)
);
//****************************************************************\// Openen van de inlogpagina
// EN: open loginpage
$htmlreply="";
$post ="POST http://web.icq.com/karma/dologin/1,,,00.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-Powerpoint, application/vnd.ms-Excel, application/msword, */*
Referer: http://web.icq.com/sms/login/1,,,00.html
Accept-Language: nl
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Host: web.icq.com
Content-Length: ".$contentlength."
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: uin=".$uin."; sms_country=".$prefix."; KarmaService1=Yes; uin=".$uin."; sms_country=".$prefix."; KarmaService1=Yes
uService=1&uLogin=".$uin."&uPassword=".$passw."&x=0&y=0";
$remote = fsockopen("web.icq.com", 80, &$errno, &$errstr, 30);
global $remote;
global $post;
fputs($remote, $post);
while (!feof($remote)) { $htmlreply.=fgets($remote,120); }
//UNCOMMENT FOR OUTPUT: echo "".htmlspecialchars($htmlreply)."";
fclose($remote);
//****************************************************************\//persoonlijke cookie uit de inlogpage halen
// EN: fetch personal cookie from login page
$splited = split("\n",$htmlreply);
$cookies = $splited[3];
$cookies = str_replace("Set-Cookie: KarmaLogin=","",$cookies);
$cookies = str_replace("; path=/","",$cookies);
$cookies = str_replace("\n","",$cookies);
//UNCOMMENT VOOR OUTPUT: echo $cookies;
if (strlen($prefix) == 2) { $contentprefix = ' '.$prefix; } else { $contentprefix = $prefix; }
$charcount = (160-strlen($message));
$contentlength= ( 1561+
strlen($message)+
strlen($charcount)+
strlen($phonenumber)+
strlen($prefix)
);
//****************************************************************\//Verzendpagina openen met de opgehaalde cookie
// EN: open send page with fetched cookie
$htmlreply="";
$post ='POST http://web.icq.com/sms/send_history/1,,,00.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
Referer: http://web.icq.com/sms/send_session/1,,,00.html?prefix=+'.$prefix.'&carrier=&tophone='.$phonenumber.'
Accept-Language: nl
Content-Type: multipart/form-data; boundary=---------------------------7d12442eab4
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Host: web.icq.com
Content-Length: '.$contentlength.'
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: uin='.$uin.'; sms_country='.$prefix.'; KarmaService1=Yes; KarmaLogin='.$cookies.'; uin='.$uin.'; sms_country='.$prefix.'; KarmaService1=Yes; KarmaLogin='.$cookies.'
-----------------------------7d12442eab4
Content-Disposition: form-data; name="carrier"

-----------------------------7d12442eab4
Content-Disposition: form-data; name="prefix"
'.$contentprefix.'
-----------------------------7d12442eab4
Content-Disposition: form-data; name="tophone"
'.$phonenumber.'
-----------------------------7d12442eab4
Content-Disposition: form-data; name="uSession"
1
-----------------------------7d12442eab4
Content-Disposition: form-data; name="uReply"

-----------------------------7d12442eab4
Content-Disposition: form-data; name="uLastId"

-----------------------------7d12442eab4
Content-Disposition: form-data; name="uSend"
1
-----------------------------7d12442eab4
Content-Disposition: form-data; name="uNextId"

-----------------------------7d12442eab4
Content-Disposition: form-data; name="uHistoryCounter"
1
-----------------------------7d12442eab4
Content-Disposition: form-data; name="count"
0
-----------------------------7d12442eab4
Content-Disposition: form-data; name="uSubmitCount"
0
-----------------------------7d12442eab4
Content-Disposition: form-data; name="checkNewMsg"
180000
-----------------------------7d12442eab4
Content-Disposition: form-data; name="charcount"
'.$charcount.'
-----------------------------7d12442eab4
Content-Disposition: form-data; name="msg"
'.$message.'
-----------------------------7d12442eab4
Content-Disposition: form-data; name="x"
30
-----------------------------7d12442eab4
Content-Disposition: form-data; name="y"
16
-----------------------------7d12442eab4--
';
$remote = fsockopen("web.icq.com", 80, &$errno, &$errstr, 30);
global $remote;
global $post;
fputs($remote, $post);
while (!feof($remote)) { $htmlreply.=fgets($remote,120); }
//UNCOMMENT FOR OUTPUT: echo "".htmlspecialchars($htmlreply)."";
fclose($remote);
//****************************************************************\// check if message is send if send 'moved permanently' is returned
if (eregi('Moved Permanently',$htmlreply))
{ echo "Sms message successfully sent!"; }
else
{ echo "Sms not sent!"; }
?>

相關文章

  • ThinkPHP中session函數(shù)詳解

    ThinkPHP中session函數(shù)詳解

    這篇文章主要為大家詳細介紹了ThinkPHP中session函數(shù),具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2016-09-09
  • Yii2實現(xiàn)ajax上傳圖片插件用法

    Yii2實現(xiàn)ajax上傳圖片插件用法

    這篇文章主要介紹了Yii2實現(xiàn)ajax上傳圖片插件用法,結(jié)合實例形式分析了Yii上傳圖片插件的具體使用方法,需要的朋友可以參考下
    2016-04-04
  • CVE-2020-15148漏洞分析

    CVE-2020-15148漏洞分析

    這篇文章主要為大家介紹了CVE-2020-15148漏洞分析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進步,早日升職加薪
    2023-02-02
  • Yii框架中使用PHPExcel的方法分析

    Yii框架中使用PHPExcel的方法分析

    這篇文章主要介紹了Yii框架中使用PHPExcel的方法,簡單分析了Yii使用PHPExcel的相關操作技巧與注意事項,并附帶說明了Yii的autoload機制,需要的朋友可以參考下
    2019-07-07
  • php 從一個數(shù)組中隨機的取出若干個不同的數(shù)實例

    php 從一個數(shù)組中隨機的取出若干個不同的數(shù)實例

    本文章向碼農(nóng)介紹php從一個不重復的數(shù)組中隨機的取出若干個不同的元素,難點是防止在取數(shù)的時候出現(xiàn)已經(jīng)取到過的情況(特別是取到最后),需要盡可能的降低碰撞,需要的朋友可以參考下
    2016-12-12
  • 基于php解決json_encode中文UNICODE轉(zhuǎn)碼問題

    基于php解決json_encode中文UNICODE轉(zhuǎn)碼問題

    這篇文章主要介紹了基于php解決json_encode中文UNICODE轉(zhuǎn)碼問題,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友可以參考下
    2020-11-11
  • PHP獲取網(wǎng)頁標題的3種實現(xiàn)方法代碼實例

    PHP獲取網(wǎng)頁標題的3種實現(xiàn)方法代碼實例

    這篇文章主要介紹了PHP獲取網(wǎng)頁標題的3種實現(xiàn)方法,分別使用CURL、file()函數(shù)、file_get_contents實現(xiàn),需要的朋友可以參考下
    2014-04-04
  • mysql 性能的檢查和優(yōu)化方法

    mysql 性能的檢查和優(yōu)化方法

    mysql在遇到嚴重性能問題時,一般都有這么幾種可能
    2009-06-06
  • Laravel 之url參數(shù),獲取路由參數(shù)的例子

    Laravel 之url參數(shù),獲取路由參數(shù)的例子

    今天小編就為大家分享一篇Laravel 之url參數(shù),獲取路由參數(shù)的例子,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2019-10-10
  • yii2行為的方法如何注入到組件類中詳解

    yii2行為的方法如何注入到組件類中詳解

    這篇文章主要給大家介紹了關于yii2中行為的方法是如何注入到組件類中去的相關資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧。
    2017-08-08

最新評論

平南县| 永新县| 民权县| 开化县| 大同县| 长汀县| 剑河县| 临城县| 舞钢市| 怀化市| 遂平县| 竹山县| 抚州市| 夏津县| 登封市| 阿拉尔市| 涿州市| 沈阳市| 通山县| 曲阜市| 岳阳市| 罗田县| 嘉荫县| 交城县| 榕江县| 勐海县| 临桂县| 南充市| 潮安县| 肥东县| 双柏县| 枣阳市| 手游| 城口县| 萍乡市| 东宁县| 电白县| 桃园市| 任丘市| 平罗县| 黎川县|