This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * description : null | |
| * @author : zhoumengkang | |
| * createTime : 15/2/14 10:12 | |
| */ | |
| define("TOKEN", "weixin"); | |
| $wechatObj = new weChat(); | |
| class weChat{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ######################## config ######################## | |
| # 升级日志 | |
| publish_log_file="/update/log/path/publish.log" | |
| # 需要邮件通知的人 | |
| master=( | |
| i@zhoumengkang.com |