07 2018 档案
摘要:array( 'header' => array( 'accept'=> "application/json", 'content-type'=> "application/json", 'date'=> gmdate("D, d M Y H:i:s \G\M\T"), 'autho...
阅读全文
摘要:= $startRow"; //方法二: //$cmdstr = "select * from example where rowid in(select rid from(select rownum rn,rid from(select rowid rid,id from EXAMPLE order by id desc) where rownum".$startRow.")order b...
阅读全文
摘要:一、将本机文件复制到远程服务器上 #scp /usr/local/kafka_2.11-0.11.0.0/config/server.properties app@172.25.6.11:/haha /usr/local/kafka_2.11-0.11.0.0/config/ 本地文件的绝对路径 server.properties 要复制到服务器上的本地文件 app...
阅读全文
摘要:redis和memcached相比,的独特之处: 1: redis可以用来做存储(storge), 而memccached是用来做缓存(cache) 这个特点主要因为其有”持久化”的功能. 2: 存储的数据有”结构”,对于memcached来说,存储的数据,只有1种类型--”字符串”, 而redis
阅读全文
摘要:# 安装编译工具: yum install gcc automake autoconf libtool gcc-c++ # 安装基础库 yum install gd zlib zlib-devel openssl openssl-devel libxml2 libxml2-devel libjpeg libjpeg-devel libpng libpng-devel freetype free...
阅读全文
摘要:Nginx安装 Nginx说明 PathInfo模式: 默认nginx不支持path_info模式,apache自带path_info模式 nginx实现原理: 正则匹配.php后面的pathinfo部分 把pathinfo部分赋给PATH_INFO变量 Url重写(rewrite) regex 常
阅读全文
摘要:PHP关于Session的配置: Session存储mysql数据库: sql代码: php代码: 名称:session_mysql.class.php 测试: 创建一个 set_session.php 创建一个 get_session.php 测试步骤:先访问 set_session.php文件
阅读全文
摘要:$appid=''; $secret=''; //微信网页授权获取openid $web_url='http://www.xxxx.com/shouquan.php'; if (!isset($_GET['code'])) { $redirect_uri=urlencode($web_url); $url='https://open.weixin.qq.com/connect/oauth2/...
阅读全文
摘要:"; echo "昨天:".date("Y-m-d",strtotime("-1 day")), ""; echo "明天:".date("Y-m-d",strtotime("+1 day")). ""; echo "一周后:".date("Y-m-d",strtotime("+1 week")). ""; echo "一周零两天四小时两
阅读全文