摘要: //返回json数据给js function json_output($err_code = 0 , $error_message = '' , $data = [] , $redirect = '',$jsonp = FALSE){ $ret = array( 'error_code' => $err_code, 'error_message' => $error_messa... 阅读全文
posted @ 2016-11-11 15:00 xyyphp 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh #修改为服务编码 export LANG=zh_CN.utf-8 #Set variable REPOS="$1" REV="$2" SVN=/usr/bin/svn WEB=/home/www/develop LOG=/var/log/svn/post-commit.log #update the code from the SVN $SVN update $WEB... 阅读全文
posted @ 2016-11-11 12:16 xyyphp 阅读(1327) 评论(0) 推荐(0) 编辑
摘要: 调用方式: $header = self::getHeader(); $data = self::postUrl($url, $header); /** * 组合Header * @return type */ protected static function getHeader() { retu 阅读全文
posted @ 2016-11-11 10:44 xyyphp 阅读(295) 评论(0) 推荐(0) 编辑