Skip to content

Instantly share code, notes, and snippets.

View one887777777's full-sized avatar

one887777777 one887777777

  • 西雅图
View GitHub Profile
<?php
/**
* description : null
* @author : zhoumengkang
* createTime : 15/2/14 10:12
*/
define("TOKEN", "weixin");
$wechatObj = new weChat();
class weChat{
<?php
function send_request_by_fsockopen($url,$post_data=array()){
$url_array = parse_url($url);
$hostname = $url_array['host'];
$port = isset($url_array['port'])? $url_array['port'] : 80;
$requestPath = $url_array['path'] ."?". $url_array['query'];
$fp = fsockopen($hostname, $port, $errno, $errstr, 10);
if (!$fp) {
echo "$errstr ($errno)";
return false;
#!/bin/sh
######################## config ########################
# 升级日志
publish_log_file="/update/log/path/publish.log"
# 需要邮件通知的人
master=(
i@zhoumengkang.com