楼主: 龙晨
收起左侧

[评测] 电脑开机自动发送短信到手机

  [复制链接]
luolwz1988
发表于 2011-10-21 16:24:37 | 显示全部楼层
这个真不错,看来得学学批处理了。
bz0615
发表于 2011-11-8 15:04:42 | 显示全部楼层
太牛了
bz0615
发表于 2011-11-8 15:05:00 | 显示全部楼层
可惜不联网就神马都是浮云了
彻夜等待
发表于 2011-11-8 17:12:53 | 显示全部楼层
好像不错啊..
wulanautumn
发表于 2011-11-8 17:15:53 | 显示全部楼层
高手
loveycllove
发表于 2011-11-10 17:23:15 | 显示全部楼层
开机不联网的话  还是没用啊
zpapplezp
发表于 2011-11-10 21:02:26 | 显示全部楼层
路过。。。
sevenday
发表于 2011-11-10 23:43:55 | 显示全部楼层
linexp 发表于 2011-10-5 18:30
把 htm l快捷方式放到启动栏里就行了

你在说什么,HTML没效果的,设置成开机自动联网最好
sevenday
发表于 2011-11-10 23:44:54 | 显示全部楼层
v0v0v02 发表于 2011-10-5 20:35
短信监控什么的交给路由不是更好?

怎么做?路由还能允许用户自己编程并运行?没见过这么高端的
sevenday
发表于 2011-11-10 23:53:01 | 显示全部楼层
sjminh 发表于 2011-10-15 21:42
这个网站是个啥么网站,貌似不是飞信的官网啊
矛煮袭教导我们说:不要把账号密码留给第三方,尤其是个人的 ...

http://sms.api.bz/   用的移动开放的接口,是安全的


<?php  
$data["username"] = ;  
$data["password"] = " ";  
$data["sendto"] = ;  
$data["message"] = ";  
  
$curl = new Curl_Class();  
$result = @$curl->post("http://sms.api.bz/fetion.php", $data);  
echo $result; //
//echo iconv("UTF-8", "GBK", $result);  
  
//curl类  
class Curl_Class  
{  
    function Curl_Class()  
    {  
        return true;  
    }  
  
    function execute($method, $url, $fields = '', $userAgent = '', $httpHeaders = '', $username = '', $password = '')  
    {  
        $ch = Curl_Class::create();  
        if (false === $ch)  
        {  
            return false;  
        }  
  
        if (is_string($url) && strlen($url))  
        {  
            $ret = curl_setopt($ch, CURLOPT_URL, $url);  
        }  
        else  
        {  
            return false;  
        }  
        //是否显示头部信息  
        curl_setopt($ch, CURLOPT_HEADER, false);  
        //  
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);  
  
        if ($username != '')  
        {  
            curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password);  
        }  
  
        $method = strtolower($method);  
        if ('post' == $method)  
        {  
            curl_setopt($ch, CURLOPT_POST, true);  
            if (is_array($fields))  
            {  
                $sets = array();  
                foreach ($fields AS $key => $val)  
                {  
                    $sets[] = $key . '=' . urlencode($val);  
                }  
                $fields = implode('&',$sets);  
            }  
            curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);  
        }  
        else if ('put' == $method)  
        {  
            curl_setopt($ch, CURLOPT_PUT, true);  
        }  
  
        //curl_setopt($ch, CURLOPT_PROGRESS, true);  
        //curl_setopt($ch, CURLOPT_VERBOSE, true);  
        //curl_setopt($ch, CURLOPT_MUTE, false);  
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);//设置curl超时秒数  
  
        if (strlen($userAgent))  
        {  
            curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);  
        }  
  
        if (is_array($httpHeaders))  
        {  
            curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeaders);  
        }  
  
        $ret = curl_exec($ch);  
  
        if (curl_errno($ch))  
        {  
            curl_close($ch);  
            return array(curl_error($ch), curl_errno($ch));  
        }  
        else  
        {  
            curl_close($ch);  
            if (!is_string($ret) || !strlen($ret))  
            {  
                return false;  
            }  
            return $ret;  
        }  
    }  
  
    function post($url, $fields, $userAgent = '', $httpHeaders = '', $username = '', $password = '')  
    {  
        $ret = Curl_Class::execute('POST', $url, $fields, $userAgent, $httpHeaders, $username, $password);  
        if (false === $ret)  
        {  
            return false;  
        }  
  
        if (is_array($ret))  
        {  
            return false;  
        }  
        return $ret;  
    }  
  
    function get($url, $userAgent = '', $httpHeaders = '', $username = '', $password = '')  
    {  
        $ret = Curl_Class::execute('GET', $url, '', $userAgent, $httpHeaders, $username, $password);  
        if (false === $ret)  
        {  
            return false;  
        }  
  
        if (is_array($ret))  
        {  
            return false;  
        }  
        return $ret;  
    }  
  
    function create()  
    {  
        $ch = null;  
        if (!function_exists('curl_init'))  
        {  
            return false;  
        }  
        $ch = curl_init();  
        if (!is_resource($ch))  
        {  
            return false;  
        }  
        return $ch;  
    }  
  
}  
?>  
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-2-4 13:45 , Processed in 0.096094 second(s), 14 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表