- $url_api = "http://zhushou.easybots.cn/ep-api_send?k=......&msg=";
- // k 是自己的私钥
- // 此接口只能发微信给自己,请到 http://zhushou.easybots.cn 申请
- $msg = "服务器异常,请登录检查";
- // 发送
- $s = file_get_contents($url_api . urlencode($msg));
- // 检查结果
- if('+OK' == $s) ...
- //该片段来自于http://www.codesnippet.cn/detail/191220138141.html
来源: http://www.codesnippet.cn/detail/191220138141.html