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

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

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

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

復(fù)制代碼 代碼如下:

<?
//###########################################################
//
// 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!"; }
?>

相關(guān)文章

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

    ThinkPHP中session函數(shù)詳解

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

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

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

    CVE-2020-15148漏洞分析

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

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

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

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

    本文章向碼農(nóng)介紹php從一個(gè)不重復(fù)的數(shù)組中隨機(jī)的取出若干個(gè)不同的元素,難點(diǎn)是防止在取數(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)碼問題,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下
    2020-11-11
  • PHP獲取網(wǎng)頁(yè)標(biāo)題的3種實(shí)現(xiàn)方法代碼實(shí)例

    PHP獲取網(wǎng)頁(yè)標(biāo)題的3種實(shí)現(xiàn)方法代碼實(shí)例

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

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

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

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

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

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

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

最新評(píng)論

左云县| 德江县| 固安县| 班玛县| 裕民县| 克山县| 梁平县| 苍梧县| 阜康市| 精河县| 黑河市| 山东| 阿勒泰市| 阜新市| 水富县| 宾阳县| 临颍县| 房产| 碌曲县| 固镇县| 和硕县| 临洮县| 常宁市| 讷河市| 从化市| 永善县| 黄山市| 庆阳市| 绥阳县| 康乐县| 密山市| 永泰县| 西和县| 朔州市| 招远市| 综艺| 邵武市| 佛教| 奎屯市| 科技| 宕昌县|